summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-01-09 17:07:46 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-09 15:05:26 +0000
commitbe78e8190a38c8aff570ed7a3f93a531a296c37d (patch)
tree9532fa0be2215d788f75ba3d136c12523556d05c /meta
parent66db85262bef08802af30964b415bff349cfba69 (diff)
downloadpoky-be78e8190a38c8aff570ed7a3f93a531a296c37d.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sstate.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d544da97d6..68fd996931 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -33,6 +33,11 @@ SSTATE_MANMACH ?= "${SSTATE_PKGARCH}"
33SSTATEPREINSTFUNCS ?= "" 33SSTATEPREINSTFUNCS ?= ""
34SSTATEPOSTINSTFUNCS ?= "" 34SSTATEPOSTINSTFUNCS ?= ""
35 35
36# Specify dirs in which the shell function is executed and don't use ${B}
37# as default dirs to avoid possible race about ${B} with other task.
38sstate_create_package[dirs] = "${SSTATE_BUILDDIR}"
39sstate_unpack_package[dirs] = "${SSTATE_INSTDIR}"
40
36python () { 41python () {
37 if bb.data.inherits_class('native', d): 42 if bb.data.inherits_class('native', d):
38 d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH')) 43 d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH'))