Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Newlib is a C library intended for use on embedded systems" |
| 2 | HOMEPAGE = "https://sourceware.org/newlib/" |
| 3 | DESCRIPTION = "C library intended for use on embedded systems. It is a conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products." |
| 4 | SECTION = "libs" |
| 5 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | LICENSE = "GPLv2 & LGPLv3 & GPLv3 & LGPLv2 & BSD-2-Clause & tcl" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = " \ |
| 8 | file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 9 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 10 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 11 | file://COPYING.LIBGLOSS;md5=54b778d585443cd7fbfa1b47cbd63a89 \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | file://COPYING.NEWLIB;md5=ac17c68751aad7a5298ce3f249121070 \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | file://newlib/libc/posix/COPYRIGHT;md5=103468ff1982be840fdf4ee9f8b51bbf \ |
| 15 | file://newlib/libc/sys/linux/linuxthreads/LICENSE;md5=73640207fbc79b198c7ffd4ad4d97aa0 \ |
| 16 | " |
| 17 | |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 18 | SRC_URI = "https://sourceware.org/pub/newlib/newlib-${PV}.tar.gz" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 19 | SRC_URI[sha256sum] = "58dd9e3eaedf519360d92d84205c3deef0b3fc286685d1c562e245914ef72c66" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | |
| 21 | INHIBIT_DEFAULT_DEPS = "1" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 22 | DEPENDS = "virtual/${TARGET_PREFIX}gcc" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | |
| 24 | S = "${WORKDIR}/newlib-${PV}" |
| 25 | B = "${WORKDIR}/build" |
| 26 | |
| 27 | ## disable stdlib |
| 28 | TARGET_CC_ARCH_append = " -nostdlib" |
| 29 | |
| 30 | EXTRA_OECONF = " \ |
| 31 | --build=${BUILD_SYS} \ |
| 32 | --target=${TARGET_SYS} \ |
| 33 | --host=${HOST_SYS} \ |
| 34 | --prefix=${prefix} \ |
| 35 | --exec-prefix=${exec_prefix} \ |
| 36 | --bindir=${bindir} \ |
| 37 | --libdir=${libdir} \ |
| 38 | --includedir=${includedir} \ |
| 39 | --enable-languages=c \ |
| 40 | --with-newlib \ |
| 41 | --with-gnu-as \ |
| 42 | --with-gnu-ld \ |
| 43 | --disable-multilib \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 44 | --disable-newlib-supplied-syscalls \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 45 | " |
| 46 | |
| 47 | do_configure[cleandirs] = "${B}" |
| 48 | |
| 49 | do_install() { |
| 50 | oe_runmake install DESTDIR='${D}' |
| 51 | } |
| 52 | |
| 53 | COMPATIBLE_HOST_libc-musl_class-target = "null" |
| 54 | COMPATIBLE_HOST_libc-glibc_class-target = "null" |