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 \ |
| 28 | " |
| 29 | |
| 30 | # compilerlibs defaults to gcc-runtime, but we get runtime from libgloss |
| 31 | # we set ASSUME_PROVIDED because we cant set PREFERRED_PROVIDER |
| 32 | # for compilerlibs since its overridden by tcmode-default |
| 33 | ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}compilerlibs virtual/crypt" |
| 34 | |
| 35 | # Its useful to be able to extend newlib, but we dont provide a native variant of libgloss |
| 36 | NEWLIB_EXTENDED ?= "libgloss libgcc" |
| 37 | BASE_DEFAULT_DEPS_append_class-target = " ${NEWLIB_EXTENDED}" |
| 38 | |
| 39 | TARGET_OS = "elf" |
| 40 | TARGET_OS_arm = "eabi" |
| 41 | |
| 42 | TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE}" |
| 43 | TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}" |
| 44 | TOOLCHAIN_NEED_CONFIGSITE_CACHE_remove = "zlib ncurses" |
| 45 | |
| 46 | # disable pie security flags by default |
| 47 | SECURITY_CFLAGS_libc-newlib = "${SECURITY_NOPIE_CFLAGS}" |
| 48 | SECURITY_LDFLAGS_libc-newlib = "" |