mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +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:
@@ -5,9 +5,15 @@ NATIVESDKLIBC ?= "libc-glibc"
|
|||||||
LIBCOVERRIDE = ":${NATIVESDKLIBC}"
|
LIBCOVERRIDE = ":${NATIVESDKLIBC}"
|
||||||
MACHINEOVERRIDES = ""
|
MACHINEOVERRIDES = ""
|
||||||
PACKAGE_ARCH = "${SDK_ARCH}"
|
PACKAGE_ARCH = "${SDK_ARCH}"
|
||||||
|
|
||||||
python () {
|
python () {
|
||||||
# set TUNE_PKGARCH to SDK_ARCH
|
# set TUNE_PKGARCH to SDK_ARCH
|
||||||
d.setVar('TUNE_PKGARCH', d.getVar('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}"
|
STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
|
||||||
|
|||||||
Reference in New Issue
Block a user