mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
sstate.bbclass: Add ${PACKAGE_EXTRA_ARCHS} to SSTATE_ARCHS
This makes sure files provided by packages that use any of the extra
architectures defined using ${PACKAGE_EXTRA_ARCHS} are cleaned from
tmp/sysroot-components when sstate_eventhandler2() executes.
Without this, changing a package from using one of the extra
architectures to another architecture would lead to files being
leftover in tmp/sysroot-components, which could later be picked up
when creating the RSS for another package rather than the files that
belonged to the updated package.
(From OE-Core rev: b959b3bd92aa2939d407800fc4167b0535fd4674)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
144faeb10c
commit
4ea831fb7f
@@ -48,7 +48,8 @@ SSTATE_ARCHS = " \
|
|||||||
${SDK_ARCH}_${PACKAGE_ARCH} \
|
${SDK_ARCH}_${PACKAGE_ARCH} \
|
||||||
allarch \
|
allarch \
|
||||||
${PACKAGE_ARCH} \
|
${PACKAGE_ARCH} \
|
||||||
${MACHINE}"
|
${PACKAGE_EXTRA_ARCHS} \
|
||||||
|
${MACHINE_ARCH}"
|
||||||
|
|
||||||
SSTATE_MANMACH ?= "${SSTATE_PKGARCH}"
|
SSTATE_MANMACH ?= "${SSTATE_PKGARCH}"
|
||||||
|
|
||||||
@@ -1026,7 +1027,7 @@ python sstate_eventhandler2() {
|
|||||||
with open(preservestampfile, 'r') as f:
|
with open(preservestampfile, 'r') as f:
|
||||||
preservestamps = f.readlines()
|
preservestamps = f.readlines()
|
||||||
seen = []
|
seen = []
|
||||||
for a in d.getVar("SSTATE_ARCHS").split():
|
for a in sorted(list(set(d.getVar("SSTATE_ARCHS").split()))):
|
||||||
toremove = []
|
toremove = []
|
||||||
i = d.expand("${SSTATE_MANIFESTS}/index-" + a)
|
i = d.expand("${SSTATE_MANIFESTS}/index-" + a)
|
||||||
if not os.path.exists(i):
|
if not os.path.exists(i):
|
||||||
|
|||||||
Reference in New Issue
Block a user