blob: f3d27bbaaeb9ec82701ebdff5886c33a322d442d [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#
2# baremetal configuration
3#
4
5LIBCEXTENSION = ""
6
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007LIBCOVERRIDE = ":libc-baremetal"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009ASSUME_PROVIDED += "virtual/libc virtual/libiconv virtual/crypt"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
11PREFERRED_PROVIDER_virtual/libc ?= "musl"
12PREFERRED_PROVIDER_virtual/libiconv ?= "musl"
13PREFERRED_PROVIDER_virtual/libintl ?= "gettext"
14PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc"
15PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc"
16
17USE_NLS ?= "no"
18IMAGE_LINGUAS = ""
19LIBC_DEPENDENCIES = ""
20
Patrick Williams213cb262021-08-07 19:21:33 -050021EXTRA_OECONF:pn-gcc-cross-${TARGET_ARCH}:append = " --without-headers"
22DEPENDS:remove:pn-meta-toolchain = "virtual/libc virtual/${TARGET_PREFIX}compilerlibs"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024# certain compiler libs cannot be used without libc, avoid the dependence on compilerlibs
Patrick Williams213cb262021-08-07 19:21:33 -050025BASEDEPENDS:remove:class-target = "virtual/${TARGET_PREFIX}compilerlibs"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027TARGET_OS = "elf"
Patrick Williams213cb262021-08-07 19:21:33 -050028TARGET_OS:arm = "eabi"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
Andrew Geissler595f6302022-01-24 19:11:47 +000030TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE} nativesdk-qemu nativesdk-sdk-provides-dummy"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031TOOLCHAIN_HOST_TASK_ATTEMPTONLY ?= ""
32TOOLCHAIN_TARGET_TASK ?= "libgcc-dev"
Patrick Williams213cb262021-08-07 19:21:33 -050033TOOLCHAIN_NEED_CONFIGSITE_CACHE:remove = "virtual/${MLPREFIX}libc zlib ncurses"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034
35# disable stack protector by default (no-libc, no protector implementation)
Patrick Williams213cb262021-08-07 19:21:33 -050036SECURITY_STACK_PROTECTOR:libc-baremetal = ""
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080037# disable pie security flags by default
Patrick Williams213cb262021-08-07 19:21:33 -050038SECURITY_CFLAGS:libc-baremetal = "${SECURITY_NOPIE_CFLAGS}"
39SECURITY_LDFLAGS:libc-baremetal = ""