mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
53b0b65137
commit
64e1bf5486
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user