diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-02-13 00:21:58 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-14 13:07:23 +0000 |
commit | 64e1bf54866a31e531ebb8c82174feee7d5696ac (patch) | |
tree | fb3d49f0a7e0b025731326c440590faf8d46f4bc /meta/classes/crosssdk.bbclass | |
parent | 53b0b651374ca78d95bf9474e5fa05270421460d (diff) | |
download | poky-64e1bf54866a31e531ebb8c82174feee7d5696ac.tar.gz |
crosssdk: Set nativesdk specific distro features
Currently, normal distro features e.g. ld-is-gold is impacting
crosssdk recipes, which actually should not be the case, since
that feature is essentially intended for target packages and not
nativesdk packages
(From OE-Core rev: aec9f9bd9549938a6ed42e9879f3a2fdcc89463d)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/crosssdk.bbclass')
-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}" |