summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/crosssdk.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass
index c718a09025..04aecb694e 100644
--- a/meta/classes/crosssdk.bbclass
+++ b/meta/classes/crosssdk.bbclass
@@ -5,9 +5,15 @@ NATIVESDKLIBC ?= "libc-glibc"
5LIBCOVERRIDE = ":${NATIVESDKLIBC}" 5LIBCOVERRIDE = ":${NATIVESDKLIBC}"
6MACHINEOVERRIDES = "" 6MACHINEOVERRIDES = ""
7PACKAGE_ARCH = "${SDK_ARCH}" 7PACKAGE_ARCH = "${SDK_ARCH}"
8
8python () { 9python () {
9 # set TUNE_PKGARCH to SDK_ARCH 10 # set TUNE_PKGARCH to SDK_ARCH
10 d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH')) 11 d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH'))
12 # 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)))
11} 17}
12 18
13STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" 19STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"