]> code.ossystems Code Review - openembedded-core.git/commit
sstate.bbclass: specify func dirs for sstate_hardcode_path
authorWenzong Fan <wenzong.fan@windriver.com>
Wed, 15 Oct 2014 03:10:48 +0000 (23:10 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 18 Oct 2014 14:12:55 +0000 (16:12 +0200)
commita949943e622b08485fc7632a0a743bc009079c67
tree0aad5b31a7e0ceebf3b7c445f8e0d327ecba1e71
parent69a3ab38d1c725c2b575065739cae4a3b45015a2
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}.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/sstate.bbclass