diff options
-rw-r--r-- | meta/classes/crosssdk.bbclass | 6 |
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" | |||
5 | LIBCOVERRIDE = ":${NATIVESDKLIBC}" | 5 | LIBCOVERRIDE = ":${NATIVESDKLIBC}" |
6 | MACHINEOVERRIDES = "" | 6 | MACHINEOVERRIDES = "" |
7 | PACKAGE_ARCH = "${SDK_ARCH}" | 7 | PACKAGE_ARCH = "${SDK_ARCH}" |
8 | |||
8 | python () { | 9 | python () { |
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 | ||
13 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 19 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" |