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 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 6 | LICENSE = "GPLv2 & LGPLv3 & GPLv3 & LGPLv2 & BSD-2-Clause" |
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 \ |
| 11 | file://COPYING.LIBGLOSS;md5=73f5c98779aea7dba4a6c94a74ab0ae2 \ |
| 12 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 13 | file://COPYING.NEWLIB;md5=100d470af54e2d1d79fbd8498a32ff26 \ |
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 | |
| 18 | SRC_URI = "ftp://sourceware.org/pub/newlib/newlib-${PV}.tar.gz" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 19 | SRC_URI[md5sum] = "f84263b7d524df92a9c9fb30b79e0134" |
| 20 | SRC_URI[sha256sum] = "fb4fa1cc21e9060719208300a61420e4089d6de6ef59cf533b57fe74801d102a" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 21 | |
| 22 | INHIBIT_DEFAULT_DEPS = "1" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 23 | DEPENDS = "virtual/${TARGET_PREFIX}gcc" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | |
| 25 | S = "${WORKDIR}/newlib-${PV}" |
| 26 | B = "${WORKDIR}/build" |
| 27 | |
| 28 | ## disable stdlib |
| 29 | TARGET_CC_ARCH_append = " -nostdlib" |
| 30 | |
| 31 | EXTRA_OECONF = " \ |
| 32 | --build=${BUILD_SYS} \ |
| 33 | --target=${TARGET_SYS} \ |
| 34 | --host=${HOST_SYS} \ |
| 35 | --prefix=${prefix} \ |
| 36 | --exec-prefix=${exec_prefix} \ |
| 37 | --bindir=${bindir} \ |
| 38 | --libdir=${libdir} \ |
| 39 | --includedir=${includedir} \ |
| 40 | --enable-languages=c \ |
| 41 | --with-newlib \ |
| 42 | --with-gnu-as \ |
| 43 | --with-gnu-ld \ |
| 44 | --disable-multilib \ |
| 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" |