summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2014-10-14 23:10:48 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-18 16:14:04 +0200
commit0d761fc4ff00d9e5dd420bf84a20c67bed4c6634 (patch)
treebda6addfa517d76fdcd314859d4421bede4f2f5f /meta/classes/sstate.bbclass
parent8a475be8087ba3d2bda3835f49e66a5842538612 (diff)
downloadpoky-0d761fc4ff00d9e5dd420bf84a20c67bed4c6634.tar.gz
sstate.bbclass: specify func dirs for sstate_hardcode_path
For some recipes that inhrient cmake, the ${B} may be removed by cmake_do_configure() while sstate_hardcode_path() running, this causes build errors: Exception: OSError: [Errno 2] No such file or directory: \ '/path/to/build' The function sstate_hardcode_path() called command: $SSTATE_SCAN_CMD which extended as "find ${SSTATE_BUILDDIR} ..." So the proper function dirs could be ${SSTATE_BUILDDIR}. (From OE-Core rev: a949943e622b08485fc7632a0a743bc009079c67) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-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 9cd4590158..f8695e7e9b 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -47,6 +47,11 @@ SIGGEN_LOCKEDSIGS_CHECK_LEVEL ?= 'error'
47sstate_create_package[dirs] = "${SSTATE_BUILDDIR}" 47sstate_create_package[dirs] = "${SSTATE_BUILDDIR}"
48sstate_unpack_package[dirs] = "${SSTATE_INSTDIR}" 48sstate_unpack_package[dirs] = "${SSTATE_INSTDIR}"
49 49
50# Do not run sstate_hardcode_path() in ${B}:
51# the ${B} maybe removed by cmake_do_configure() while
52# sstate_hardcode_path() running.
53sstate_hardcode_path[dirs] = "${SSTATE_BUILDDIR}"
54
50python () { 55python () {
51 if bb.data.inherits_class('native', d): 56 if bb.data.inherits_class('native', d):
52 d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH')) 57 d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH'))