]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
archiver: don't use machine variables in shared recipes
authorJose Quaresma <quaresma.jose@gmail.com>
Tue, 14 Jun 2022 16:24:38 +0000 (17:24 +0100)
committerSteve Sakoman <steve@sakoman.com>
Wed, 15 Jun 2022 16:40:10 +0000 (06:40 -1000)
commit135adeb82c9303c26193bb6f6bd3bc696793aa62
treedb5f5fd8866c9c8f844e9f386b9c0a3553dd8058
parent14aa189c2e47a2c5a4a0099235a2605666651f74
archiver: don't use machine variables in shared recipes

When using multiconfig with the same TMP folder we can have
races because the shared recipes like gcc-source run twice.

ARCHIVER_OUTDIR = ${ARCHIVER_TOPDIR}/${TARGET_SYS}/${PF}/
which includes TARGET_SYS and between the two different MACHINE values,
this changes  from 'arm-poky-linux-gnueabi' to 'aarch64-poky-linux'.
This leads to the task running twice, once for each multiconfig.

To solve this we need to store the shared output in a common place
for all machines and in this way the stamps will be the same for each
machine so the gcc-source will on run once regardless of the machine used.

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5abe497aad39a6ce8d72556fcdda1938a0f8c1bc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/archiver.bbclass