blob: 04aecb694e958551df3d08e090dfc0ce406610be [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001inherit cross
2
3CLASSOVERRIDE = "class-crosssdk"
Brad Bishop19323692019-04-05 15:28:33 -04004NATIVESDKLIBC ?= "libc-glibc"
5LIBCOVERRIDE = ":${NATIVESDKLIBC}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006MACHINEOVERRIDES = ""
7PACKAGE_ARCH = "${SDK_ARCH}"
Andrew Geissler82c905d2020-04-13 13:39:40 -05008
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009python () {
Brad Bishopa5c52ff2018-11-23 10:55:50 +130010 # set TUNE_PKGARCH to SDK_ARCH
11 d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH'))
Andrew Geissler82c905d2020-04-13 13:39:40 -050012 # Set features here to prevent appends and distro features backfill
13 # from modifying nativesdk distro features
14 features = set(d.getVar("DISTRO_FEATURES_NATIVESDK").split())
15 filtered = set(bb.utils.filter("DISTRO_FEATURES", d.getVar("DISTRO_FEATURES_FILTER_NATIVESDK"), d).split())
16 d.setVar("DISTRO_FEATURES", " ".join(sorted(features | filtered)))
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017}
18
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
20
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021# This class encodes staging paths into its scripts data so can only be
22# reused if we manipulate the paths.
23SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}"
24
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025TARGET_ARCH = "${SDK_ARCH}"
26TARGET_VENDOR = "${SDK_VENDOR}"
27TARGET_OS = "${SDK_OS}"
28TARGET_PREFIX = "${SDK_PREFIX}"
29TARGET_CC_ARCH = "${SDK_CC_ARCH}"
30TARGET_LD_ARCH = "${SDK_LD_ARCH}"
31TARGET_AS_ARCH = "${SDK_AS_ARCH}"
Brad Bishopc4ea0752018-11-15 14:30:15 -080032TARGET_CPPFLAGS = ""
33TARGET_CFLAGS = ""
34TARGET_CXXFLAGS = ""
35TARGET_LDFLAGS = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036TARGET_FPU = ""
37
Brad Bishop6e60e8b2018-02-01 10:27:11 -050038
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}"
40target_includedir = "${SDKPATHNATIVE}${includedir_nativesdk}"
41target_base_libdir = "${SDKPATHNATIVE}${base_libdir_nativesdk}"
42target_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
43target_exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
44baselib = "lib"
45
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046do_packagedata[stamp-extra-info] = ""
47
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050048# Need to force this to ensure consitency across architectures
Patrick Williamsc124f4f2015-09-15 14:41:29 -050049EXTRA_OECONF_GCC_FLOAT = ""
50
51USE_NLS = "no"