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:14:04 +0000 (16:14 +0200)
commit482567d5580bf7356d5fd72855fdee4c50f24cbc
treee9f72a01262eaa22f983b6e9fa15f89dd5269934
parent19b4afdf6abc4ce5f31104280afa39a3df19f44f
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>
meta/classes/sstate.bbclass