blob: 96e230f985baec4fc1f56189972830a95e0be1c2 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "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
Andrew Geissler82c905d2020-04-13 13:39:40 -05006LICENSE = "GPLv2 & LGPLv3 & GPLv3 & LGPLv2 & BSD-2-Clause & tcl"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08007LIC_FILES_CHKSUM = " \
8 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
9 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
10 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050011 file://COPYING.LIBGLOSS;md5=54b778d585443cd7fbfa1b47cbd63a89 \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012 file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 file://COPYING.NEWLIB;md5=ac17c68751aad7a5298ce3f249121070 \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014 file://newlib/libc/posix/COPYRIGHT;md5=103468ff1982be840fdf4ee9f8b51bbf \
15 file://newlib/libc/sys/linux/linuxthreads/LICENSE;md5=73640207fbc79b198c7ffd4ad4d97aa0 \
16 "
17
Brad Bishop08902b02019-08-20 09:16:51 -040018SRC_URI = "https://sourceware.org/pub/newlib/newlib-${PV}.tar.gz"
Andrew Geissler82c905d2020-04-13 13:39:40 -050019SRC_URI[sha256sum] = "58dd9e3eaedf519360d92d84205c3deef0b3fc286685d1c562e245914ef72c66"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020
21INHIBIT_DEFAULT_DEPS = "1"
Brad Bishop19323692019-04-05 15:28:33 -040022DEPENDS = "virtual/${TARGET_PREFIX}gcc"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023
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 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050044 --disable-newlib-supplied-syscalls \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080045 "
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"