1SUMMARY = "Newlib is a C library intended for use on embedded systems" 2HOMEPAGE = "https://sourceware.org/newlib/" 3DESCRIPTION = "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." 4SECTION = "libs" 5 6LICENSE = "GPLv2 & LGPLv3 & GPLv3 & LGPLv2 & BSD-2-Clause & tcl" 7LIC_FILES_CHKSUM = " \ 8 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ 9 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ 10 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ 11 file://COPYING.LIBGLOSS;md5=54b778d585443cd7fbfa1b47cbd63a89 \ 12 file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ 13 file://COPYING.NEWLIB;md5=ac17c68751aad7a5298ce3f249121070 \ 14 file://newlib/libc/posix/COPYRIGHT;md5=103468ff1982be840fdf4ee9f8b51bbf \ 15 file://newlib/libc/sys/linux/linuxthreads/LICENSE;md5=73640207fbc79b198c7ffd4ad4d97aa0 \ 16 " 17 18SRC_URI = "https://sourceware.org/pub/newlib/newlib-${PV}.tar.gz" 19SRC_URI[sha256sum] = "58dd9e3eaedf519360d92d84205c3deef0b3fc286685d1c562e245914ef72c66" 20 21INHIBIT_DEFAULT_DEPS = "1" 22DEPENDS = "virtual/${TARGET_PREFIX}gcc" 23 24S = "${WORKDIR}/newlib-${PV}" 25B = "${WORKDIR}/build" 26 27## disable stdlib 28TARGET_CC_ARCH_append = " -nostdlib" 29 30EXTRA_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 \ 44 --disable-newlib-supplied-syscalls \ 45 " 46 47do_configure[cleandirs] = "${B}" 48 49do_install() { 50 oe_runmake install DESTDIR='${D}' 51} 52 53COMPATIBLE_HOST_libc-musl_class-target = "null" 54COMPATIBLE_HOST_libc-glibc_class-target = "null" 55