Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # baremetal configuration |
| 3 | # |
| 4 | |
| 5 | LIBCEXTENSION = "" |
| 6 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | LIBCOVERRIDE = ":libc-baremetal" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | ASSUME_PROVIDED += "virtual/libc virtual/libiconv virtual/crypt" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | |
| 11 | PREFERRED_PROVIDER_virtual/libc ?= "musl" |
| 12 | PREFERRED_PROVIDER_virtual/libiconv ?= "musl" |
| 13 | PREFERRED_PROVIDER_virtual/libintl ?= "gettext" |
| 14 | PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc" |
| 15 | PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc" |
| 16 | |
| 17 | USE_NLS ?= "no" |
| 18 | IMAGE_LINGUAS = "" |
| 19 | LIBC_DEPENDENCIES = "" |
| 20 | |
| 21 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_append = " --without-headers" |
| 22 | DEPENDS_remove_pn-meta-toolchain = "virtual/libc virtual/${TARGET_PREFIX}compilerlibs" |
| 23 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | # certain compiler libs cannot be used without libc, avoid the dependence on compilerlibs |
| 25 | BASEDEPENDS_remove_class-target = "virtual/${TARGET_PREFIX}compilerlibs" |
| 26 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | TARGET_OS = "elf" |
| 28 | TARGET_OS_arm = "eabi" |
| 29 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 30 | TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE} nativesdk-qemu" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | TOOLCHAIN_HOST_TASK_ATTEMPTONLY ?= "" |
| 32 | TOOLCHAIN_TARGET_TASK ?= "libgcc-dev" |
| 33 | TOOLCHAIN_NEED_CONFIGSITE_CACHE_remove = "virtual/${MLPREFIX}libc zlib ncurses" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 34 | |
| 35 | # disable stack protector by default (no-libc, no protector implementation) |
| 36 | SECURITY_STACK_PROTECTOR_libc-baremetal = "" |
| 37 | # disable pie security flags by default |
| 38 | SECURITY_CFLAGS_libc-baremetal = "${SECURITY_NOPIE_CFLAGS}" |
| 39 | SECURITY_LDFLAGS_libc-baremetal = "" |