mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 18:32:12 +02:00
sstate: do not add TARGET_ARCH to pkgarch for cross recipes.
This is redundant (target arch is already in PN), and breaks compiling a cross-canadian toolchain, as that needs populating the sysroot with two different native-hosted toolchains built from cross recipes. Inserting TARGET_ARCH allows only one or the other. (From OE-Core rev: 33fc1792cd782feb8dbb4285e3006bb588f7978f) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
eec3bbdd27
commit
c486c6609a
@@ -83,7 +83,6 @@ SSTATE_ARCHS = " \
|
||||
${BUILD_ARCH} \
|
||||
${BUILD_ARCH}_${ORIGNATIVELSBSTRING} \
|
||||
${BUILD_ARCH}_${SDK_ARCH}_${SDK_OS} \
|
||||
${BUILD_ARCH}_${TARGET_ARCH} \
|
||||
${SDK_ARCH}_${SDK_OS} \
|
||||
${SDK_ARCH}_${PACKAGE_ARCH} \
|
||||
allarch \
|
||||
@@ -138,7 +137,7 @@ python () {
|
||||
elif bb.data.inherits_class('crosssdk', d):
|
||||
d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${SDK_ARCH}_${SDK_OS}"))
|
||||
elif bb.data.inherits_class('cross', d):
|
||||
d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${TARGET_ARCH}"))
|
||||
d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}"))
|
||||
elif bb.data.inherits_class('nativesdk', d):
|
||||
d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}_${SDK_OS}"))
|
||||
elif bb.data.inherits_class('cross-canadian', d):
|
||||
|
||||
@@ -443,7 +443,7 @@ def find_sstate_manifest(taskdata, taskdata2, taskname, d, multilibcache):
|
||||
elif "-cross-canadian" in taskdata:
|
||||
pkgarchs = ["${SDK_ARCH}_${SDK_ARCH}-${SDKPKGSUFFIX}"]
|
||||
elif "-cross-" in taskdata:
|
||||
pkgarchs = ["${BUILD_ARCH}_${TARGET_ARCH}"]
|
||||
pkgarchs = ["${BUILD_ARCH}"]
|
||||
elif "-crosssdk" in taskdata:
|
||||
pkgarchs = ["${BUILD_ARCH}_${SDK_ARCH}_${SDK_OS}"]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user