Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | SUMMARY = "Newlib is a C library intended for use on embedded systems" |
| 2 | HOMEPAGE = "https://sourceware.org/newlib/" |
| 3 | DESCRIPTION = "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 | |
| 6 | LICENSE = "GPLv2 & LGPLv3 & GPLv3 & LGPLv2" |
| 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 \ |
| 13 | file://COPYING.NEWLIB;md5=956a4b1487f7677cdcceeee8f05a21f0 \ |
| 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" |
| 19 | SRC_URI[md5sum] = "81ec873108b8593c586f91ca65963952" |
| 20 | SRC_URI[sha256sum] = "c8566335ee74e5fcaeb8595b4ebd0400c4b043d6acb3263ecb1314f8f5501332" |
| 21 | |
| 22 | INHIBIT_DEFAULT_DEPS = "1" |
| 23 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial" |
| 24 | |
| 25 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" |
| 26 | STAGINGCC = "${MLPREFIX}gcc-cross-initial-${TARGET_ARCH}" |
| 27 | |
| 28 | S = "${WORKDIR}/newlib-${PV}" |
| 29 | B = "${WORKDIR}/build" |
| 30 | |
| 31 | # Disable use of a link hash style |
| 32 | TARGET_LINK_HASH_STYLE_microblaze = "" |
| 33 | |
| 34 | # disable stdlib |
| 35 | TARGET_CC_ARCH_append = " -nostdlib" |
| 36 | |
| 37 | EXTRA_OECONF = " \ |
| 38 | --build=${BUILD_SYS} \ |
| 39 | --target=${TARGET_SYS} \ |
| 40 | --host=${HOST_SYS} \ |
| 41 | --prefix=${prefix} \ |
| 42 | --exec-prefix=${exec_prefix} \ |
| 43 | --bindir=${bindir} \ |
| 44 | --libdir=${libdir} \ |
| 45 | --includedir=${includedir} \ |
| 46 | --enable-languages=c \ |
| 47 | --with-newlib \ |
| 48 | --with-gnu-as \ |
| 49 | --with-gnu-ld \ |
| 50 | --disable-multilib \ |
| 51 | " |
| 52 | |
| 53 | do_configure[cleandirs] = "${B}" |
| 54 | |
| 55 | do_install() { |
| 56 | oe_runmake install DESTDIR='${D}' |
| 57 | } |
| 58 | |