From: Khem Raj Date: Thu, 13 Feb 2020 08:21:58 +0000 (-0800) Subject: crosssdk: Set nativesdk specific distro features X-Git-Tag: yocto-4.0~7435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aec9f9bd9549938a6ed42e9879f3a2fdcc89463d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass index c718a09025d..04aecb694e9 100644 --- a/meta/classes/crosssdk.bbclass +++ b/meta/classes/crosssdk.bbclass @@ -5,9 +5,15 @@ NATIVESDKLIBC ?= "libc-glibc" LIBCOVERRIDE = ":${NATIVESDKLIBC}" MACHINEOVERRIDES = "" PACKAGE_ARCH = "${SDK_ARCH}" + python () { # set TUNE_PKGARCH to SDK_ARCH d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH')) + # Set features here to prevent appends and distro features backfill + # from modifying nativesdk distro features + features = set(d.getVar("DISTRO_FEATURES_NATIVESDK").split()) + filtered = set(bb.utils.filter("DISTRO_FEATURES", d.getVar("DISTRO_FEATURES_FILTER_NATIVESDK"), d).split()) + d.setVar("DISTRO_FEATURES", " ".join(sorted(features | filtered))) } STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"