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.inc27
1 files changed, 17 insertions, 10 deletions
diff --git a/meta/recipes-core/newlib/newlib.inc b/meta/recipes-core/newlib/newlib.inc
index 0aba21fae7..6113f5e831 100644
--- a/meta/recipes-core/newlib/newlib.inc
+++ b/meta/recipes-core/newlib/newlib.inc
@@ -3,29 +3,30 @@ HOMEPAGE = "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." 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" 4SECTION = "libs"
5 5
6LICENSE = "GPLv2 & LGPLv3 & GPLv3 & LGPLv2 & BSD-2-Clause & tcl" 6LICENSE = "GPL-2.0-only & LGPL-3.0-only & GPL-3.0-only & LGPL-2.0-only & BSD-2-Clause & BSD-3-Clause & TCL & Apache-2.0-with-LLVM-exception"
7LIC_FILES_CHKSUM = " \ 7LIC_FILES_CHKSUM = " \
8 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ 8 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
9 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ 9 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
10 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ 10 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
11 file://COPYING.LIBGLOSS;md5=7b7615de0ecda0ff8d705966ac3b8950 \ 11 file://COPYING.LIBGLOSS;md5=c0469b6ebb847a75781066be515f032d \
12 file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ 12 file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
13 file://COPYING.NEWLIB;md5=b8dda70da54e0efb49b1074f349d7749 \ 13 file://COPYING.NEWLIB;md5=4f1a15846ffee91e352418563e1bce27 \
14 file://newlib/libc/posix/COPYRIGHT;md5=103468ff1982be840fdf4ee9f8b51bbf \ 14 file://newlib/libc/posix/COPYRIGHT;md5=103468ff1982be840fdf4ee9f8b51bbf \
15 file://newlib/libc/sys/linux/linuxthreads/LICENSE;md5=73640207fbc79b198c7ffd4ad4d97aa0 \
16 " 15 "
17 16
18SRC_URI = "https://sourceware.org/pub/newlib/newlib-${PV}.tar.gz" 17BASEVER = "4.4.0"
19SRC_URI[sha256sum] = "f296e372f51324224d387cc116dc37a6bd397198756746f93a2b02e9a5d40154" 18PV = "${BASEVER}+git"
19SRC_URI = "git://sourceware.org/git/newlib-cygwin.git;protocol=https;branch=main"
20SRCREV="ad11e2587f83d61357a32c61c36d72ea4f39315e"
20 21
21INHIBIT_DEFAULT_DEPS = "1" 22INHIBIT_DEFAULT_DEPS = "1"
22DEPENDS = "virtual/${TARGET_PREFIX}gcc" 23DEPENDS = "virtual/${TARGET_PREFIX}gcc"
23 24
24S = "${WORKDIR}/newlib-${PV}" 25S = "${WORKDIR}/git"
25B = "${WORKDIR}/build" 26B = "${WORKDIR}/build"
26 27
27## disable stdlib 28## disable stdlib
28TARGET_CC_ARCH_append = " -nostdlib" 29TARGET_CC_ARCH:append = " -nostdlib"
29 30
30EXTRA_OECONF = " \ 31EXTRA_OECONF = " \
31 --build=${BUILD_SYS} \ 32 --build=${BUILD_SYS} \
@@ -46,9 +47,15 @@ EXTRA_OECONF = " \
46 47
47do_configure[cleandirs] = "${B}" 48do_configure[cleandirs] = "${B}"
48 49
50# We need a dummy limits.h to pass preprocessor checks
51do_configure:append(){
52 install -d ${STAGING_INCDIR}
53 touch ${STAGING_INCDIR}/limits.h
54}
55
49do_install() { 56do_install() {
50 oe_runmake install DESTDIR='${D}' 57 oe_runmake install DESTDIR='${D}'
51} 58}
52 59
53COMPATIBLE_HOST_libc-musl_class-target = "null" 60COMPATIBLE_HOST:libc-musl:class-target = "null"
54COMPATIBLE_HOST_libc-glibc_class-target = "null" 61COMPATIBLE_HOST:libc-glibc:class-target = "null"