summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/newlib/newlib.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/newlib/newlib.inc')
-rw-r--r--meta/recipes-core/newlib/newlib.inc58
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-core/newlib/newlib.inc b/meta/recipes-core/newlib/newlib.inc
new file mode 100644
index 0000000000..c97c7c276b
--- /dev/null
+++ b/meta/recipes-core/newlib/newlib.inc
@@ -0,0 +1,58 @@
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"
7LIC_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
18SRC_URI = "ftp://sourceware.org/pub/newlib/newlib-${PV}.tar.gz"
19SRC_URI[md5sum] = "81ec873108b8593c586f91ca65963952"
20SRC_URI[sha256sum] = "c8566335ee74e5fcaeb8595b4ebd0400c4b043d6acb3263ecb1314f8f5501332"
21
22INHIBIT_DEFAULT_DEPS = "1"
23DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial"
24
25PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:"
26STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}"
27STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${SDK_SYS}"
28
29S = "${WORKDIR}/newlib-${PV}"
30B = "${WORKDIR}/build"
31
32## disable stdlib
33TARGET_CC_ARCH_append = " -nostdlib"
34
35EXTRA_OECONF = " \
36 --build=${BUILD_SYS} \
37 --target=${TARGET_SYS} \
38 --host=${HOST_SYS} \
39 --prefix=${prefix} \
40 --exec-prefix=${exec_prefix} \
41 --bindir=${bindir} \
42 --libdir=${libdir} \
43 --includedir=${includedir} \
44 --enable-languages=c \
45 --with-newlib \
46 --with-gnu-as \
47 --with-gnu-ld \
48 --disable-multilib \
49 "
50
51do_configure[cleandirs] = "${B}"
52
53do_install() {
54 oe_runmake install DESTDIR='${D}'
55}
56
57COMPATIBLE_HOST_libc-musl_class-target = "null"
58COMPATIBLE_HOST_libc-glibc_class-target = "null"