Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Newlib is a C library intended for use on embedded systems" |
| 2 | 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." |
| 4 | SECTION = "libs" |
| 5 | |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 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" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = " \ |
| 8 | file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 9 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 10 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 11 | file://COPYING.LIBGLOSS;md5=c0469b6ebb847a75781066be515f032d \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 13 | file://COPYING.NEWLIB;md5=4f1a15846ffee91e352418563e1bce27 \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | file://newlib/libc/posix/COPYRIGHT;md5=103468ff1982be840fdf4ee9f8b51bbf \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 15 | " |
| 16 | |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 17 | BASEVER = "4.4.0" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 18 | PV = "${BASEVER}+git" |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 19 | SRC_URI = "git://sourceware.org/git/newlib-cygwin.git;protocol=https;branch=main" |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 20 | SRCREV="ad11e2587f83d61357a32c61c36d72ea4f39315e" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 21 | |
| 22 | INHIBIT_DEFAULT_DEPS = "1" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 23 | DEPENDS = "virtual/${TARGET_PREFIX}gcc" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 25 | S = "${WORKDIR}/git" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 26 | B = "${WORKDIR}/build" |
| 27 | |
| 28 | ## disable stdlib |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 29 | TARGET_CC_ARCH:append = " -nostdlib" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 30 | |
| 31 | EXTRA_OECONF = " \ |
| 32 | --build=${BUILD_SYS} \ |
| 33 | --target=${TARGET_SYS} \ |
| 34 | --host=${HOST_SYS} \ |
| 35 | --prefix=${prefix} \ |
| 36 | --exec-prefix=${exec_prefix} \ |
| 37 | --bindir=${bindir} \ |
| 38 | --libdir=${libdir} \ |
| 39 | --includedir=${includedir} \ |
| 40 | --enable-languages=c \ |
| 41 | --with-newlib \ |
| 42 | --with-gnu-as \ |
| 43 | --with-gnu-ld \ |
| 44 | --disable-multilib \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 45 | --disable-newlib-supplied-syscalls \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 46 | " |
| 47 | |
| 48 | do_configure[cleandirs] = "${B}" |
| 49 | |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 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 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 56 | do_install() { |
| 57 | oe_runmake install DESTDIR='${D}' |
| 58 | } |
| 59 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 60 | COMPATIBLE_HOST:libc-musl:class-target = "null" |
| 61 | COMPATIBLE_HOST:libc-glibc:class-target = "null" |