mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
8a475be808
commit
0d761fc4ff
@@ -47,6 +47,11 @@ SIGGEN_LOCKEDSIGS_CHECK_LEVEL ?= 'error'
|
||||
sstate_create_package[dirs] = "${SSTATE_BUILDDIR}"
|
||||
sstate_unpack_package[dirs] = "${SSTATE_INSTDIR}"
|
||||
|
||||
# Do not run sstate_hardcode_path() in ${B}:
|
||||
# the ${B} maybe removed by cmake_do_configure() while
|
||||
# sstate_hardcode_path() running.
|
||||
sstate_hardcode_path[dirs] = "${SSTATE_BUILDDIR}"
|
||||
|
||||
python () {
|
||||
if bb.data.inherits_class('native', d):
|
||||
d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH'))
|
||||
|
||||
Reference in New Issue
Block a user