diff options
Diffstat (limited to 'meta/recipes-core/newlib/newlib.inc')
-rw-r--r-- | meta/recipes-core/newlib/newlib.inc | 27 |
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/" | |||
3 | DESCRIPTION = "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." | 3 | DESCRIPTION = "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." |
4 | SECTION = "libs" | 4 | SECTION = "libs" |
5 | 5 | ||
6 | LICENSE = "GPLv2 & LGPLv3 & GPLv3 & LGPLv2 & BSD-2-Clause & tcl" | 6 | LICENSE = "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" |
7 | LIC_FILES_CHKSUM = " \ | 7 | LIC_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 | ||
18 | SRC_URI = "https://sourceware.org/pub/newlib/newlib-${PV}.tar.gz" | 17 | BASEVER = "4.4.0" |
19 | SRC_URI[sha256sum] = "f296e372f51324224d387cc116dc37a6bd397198756746f93a2b02e9a5d40154" | 18 | PV = "${BASEVER}+git" |
19 | SRC_URI = "git://sourceware.org/git/newlib-cygwin.git;protocol=https;branch=main" | ||
20 | SRCREV="ad11e2587f83d61357a32c61c36d72ea4f39315e" | ||
20 | 21 | ||
21 | INHIBIT_DEFAULT_DEPS = "1" | 22 | INHIBIT_DEFAULT_DEPS = "1" |
22 | DEPENDS = "virtual/${TARGET_PREFIX}gcc" | 23 | DEPENDS = "virtual/${TARGET_PREFIX}gcc" |
23 | 24 | ||
24 | S = "${WORKDIR}/newlib-${PV}" | 25 | S = "${WORKDIR}/git" |
25 | B = "${WORKDIR}/build" | 26 | B = "${WORKDIR}/build" |
26 | 27 | ||
27 | ## disable stdlib | 28 | ## disable stdlib |
28 | TARGET_CC_ARCH_append = " -nostdlib" | 29 | TARGET_CC_ARCH:append = " -nostdlib" |
29 | 30 | ||
30 | EXTRA_OECONF = " \ | 31 | EXTRA_OECONF = " \ |
31 | --build=${BUILD_SYS} \ | 32 | --build=${BUILD_SYS} \ |
@@ -46,9 +47,15 @@ EXTRA_OECONF = " \ | |||
46 | 47 | ||
47 | do_configure[cleandirs] = "${B}" | 48 | do_configure[cleandirs] = "${B}" |
48 | 49 | ||
50 | # We need a dummy limits.h to pass preprocessor checks | ||
51 | do_configure:append(){ | ||
52 | install -d ${STAGING_INCDIR} | ||
53 | touch ${STAGING_INCDIR}/limits.h | ||
54 | } | ||
55 | |||
49 | do_install() { | 56 | do_install() { |
50 | oe_runmake install DESTDIR='${D}' | 57 | oe_runmake install DESTDIR='${D}' |
51 | } | 58 | } |
52 | 59 | ||
53 | COMPATIBLE_HOST_libc-musl_class-target = "null" | 60 | COMPATIBLE_HOST:libc-musl:class-target = "null" |
54 | COMPATIBLE_HOST_libc-glibc_class-target = "null" | 61 | COMPATIBLE_HOST:libc-glibc:class-target = "null" |