blob: e04f8c881238c1a2f271ea7cdda5906955c0a5df [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
21EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_append = " --without-headers"
22DEPENDS_remove_pn-meta-toolchain = "virtual/libc virtual/${TARGET_PREFIX}compilerlibs"
23
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024# certain compiler libs cannot be used without libc, avoid the dependence on compilerlibs
25BASEDEPENDS_remove_class-target = "virtual/${TARGET_PREFIX}compilerlibs"
26
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027TARGET_OS = "elf"
28TARGET_OS_arm = "eabi"
29
30TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE}"
31TOOLCHAIN_HOST_TASK_ATTEMPTONLY ?= ""
32TOOLCHAIN_TARGET_TASK ?= "libgcc-dev"
33TOOLCHAIN_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)
36SECURITY_STACK_PROTECTOR_libc-baremetal = ""
37# disable pie security flags by default
38SECURITY_CFLAGS_libc-baremetal = "${SECURITY_NOPIE_CFLAGS}"
39SECURITY_LDFLAGS_libc-baremetal = ""