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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | EXTRA_OECONF:pn-gcc-cross-${TARGET_ARCH}:append = " --without-headers" |
| 22 | DEPENDS:remove:pn-meta-toolchain = "virtual/libc virtual/${TARGET_PREFIX}compilerlibs" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 25 | BASEDEPENDS:remove:class-target = "virtual/${TARGET_PREFIX}compilerlibs" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 26 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | TARGET_OS = "elf" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | TARGET_OS:arm = "eabi" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 29 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 30 | TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE} nativesdk-qemu nativesdk-sdk-provides-dummy" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | TOOLCHAIN_HOST_TASK_ATTEMPTONLY ?= "" |
| 32 | TOOLCHAIN_TARGET_TASK ?= "libgcc-dev" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 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) |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | SECURITY_STACK_PROTECTOR:libc-baremetal = "" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 37 | # disable pie security flags by default |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 38 | SECURITY_CFLAGS:libc-baremetal = "${SECURITY_NOPIE_CFLAGS}" |
| 39 | SECURITY_LDFLAGS:libc-baremetal = "" |