blob: e3590582d9b66626fa0dd88b1690d29a08d64b11 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001#
2# Newlib configuration
3#
4
5LIBCEXTENSION = "-newlib"
6LIBCOVERRIDE = ":libc-newlib"
7
8PREFERRED_PROVIDER_virtual/libc ?= "newlib"
9PREFERRED_PROVIDER_virtual/libiconv ?= "newlib"
10PREFERRED_PROVIDER_virtual/libintl ?= "newlib"
11PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc"
12PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc"
13
14DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig"
15
16#USE_NLS ?= "no"
17
18IMAGE_LINGUAS = ""
19
20LIBC_DEPENDENCIES = "\
21 newlib-dbg \
22 newlib-dev \
23 libgloss \
24 libgloss-dev \
25 libgloss-dbg \
26 libgcc-dev \
27 libgcc-dbg \
Andrew Geissler82c905d2020-04-13 13:39:40 -050028 libstdc++-dev \
29 libstdc++-staticdev \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080030 "
31
Andrew Geissler82c905d2020-04-13 13:39:40 -050032ASSUME_PROVIDED += "virtual/crypt"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080033
34# Its useful to be able to extend newlib, but we dont provide a native variant of libgloss
35NEWLIB_EXTENDED ?= "libgloss libgcc"
Patrick Williams213cb262021-08-07 19:21:33 -050036BASE_DEFAULT_DEPS:append:class-target = " ${NEWLIB_EXTENDED}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080037
38TARGET_OS = "elf"
Patrick Williams213cb262021-08-07 19:21:33 -050039TARGET_OS:arm = "eabi"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080040
Andrew Geissler82c905d2020-04-13 13:39:40 -050041TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE} nativesdk-qemu"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080042TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}"
Patrick Williams213cb262021-08-07 19:21:33 -050043TOOLCHAIN_NEED_CONFIGSITE_CACHE:remove = "zlib ncurses"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080044
45# disable pie security flags by default
Patrick Williams213cb262021-08-07 19:21:33 -050046SECURITY_CFLAGS:libc-newlib = "${SECURITY_NOPIE_CFLAGS}"
47SECURITY_LDFLAGS:libc-newlib = ""