mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
sstate.bbclass:specify function dirs to avoid race
Specify dirs in which the shell function "sstate_create_package" and
"sstate_unpack_package" are executed and don't use ${B} as default dirs
to avoid possible race with task do_rootfs at deb image creation time.
[YOCTO #3674]
(From OE-Core rev: ccef1cf783669a4683eda9d4b44dbe6bcf426259)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
66db85262b
commit
be78e8190a
@@ -33,6 +33,11 @@ SSTATE_MANMACH ?= "${SSTATE_PKGARCH}"
|
||||
SSTATEPREINSTFUNCS ?= ""
|
||||
SSTATEPOSTINSTFUNCS ?= ""
|
||||
|
||||
# Specify dirs in which the shell function is executed and don't use ${B}
|
||||
# as default dirs to avoid possible race about ${B} with other task.
|
||||
sstate_create_package[dirs] = "${SSTATE_BUILDDIR}"
|
||||
sstate_unpack_package[dirs] = "${SSTATE_INSTDIR}"
|
||||
|
||||
python () {
|
||||
if bb.data.inherits_class('native', d):
|
||||
d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH'))
|
||||
|
||||
Reference in New Issue
Block a user