Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | # |
| 2 | # Newlib configuration |
| 3 | # |
| 4 | |
| 5 | LIBCEXTENSION = "-newlib" |
| 6 | LIBCOVERRIDE = ":libc-newlib" |
| 7 | |
| 8 | PREFERRED_PROVIDER_virtual/libc ?= "newlib" |
| 9 | PREFERRED_PROVIDER_virtual/libiconv ?= "newlib" |
| 10 | PREFERRED_PROVIDER_virtual/libintl ?= "newlib" |
| 11 | PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc" |
| 12 | PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc" |
| 13 | |
| 14 | DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig" |
| 15 | |
| 16 | #USE_NLS ?= "no" |
| 17 | |
| 18 | IMAGE_LINGUAS = "" |
| 19 | |
| 20 | LIBC_DEPENDENCIES = "\ |
| 21 | newlib-dbg \ |
| 22 | newlib-dev \ |
| 23 | libgloss \ |
| 24 | libgloss-dev \ |
| 25 | libgloss-dbg \ |
| 26 | libgcc-dev \ |
| 27 | libgcc-dbg \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 28 | libstdc++-dev \ |
| 29 | libstdc++-staticdev \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 30 | " |
| 31 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 32 | ASSUME_PROVIDED += "virtual/crypt" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 33 | |
| 34 | # Its useful to be able to extend newlib, but we dont provide a native variant of libgloss |
| 35 | NEWLIB_EXTENDED ?= "libgloss libgcc" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 36 | BASE_DEFAULT_DEPS:append:class-target = " ${NEWLIB_EXTENDED}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 37 | |
| 38 | TARGET_OS = "elf" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 39 | TARGET_OS:arm = "eabi" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 40 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 41 | TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE} nativesdk-qemu" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 42 | TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 43 | TOOLCHAIN_NEED_CONFIGSITE_CACHE:remove = "zlib ncurses" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 44 | |
| 45 | # disable pie security flags by default |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 46 | SECURITY_CFLAGS:libc-newlib = "${SECURITY_NOPIE_CFLAGS}" |
| 47 | SECURITY_LDFLAGS:libc-newlib = "" |