]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/copy_buildsystem: fix building eSDK with indirect paths in BBLAYERS paule/extsdk-path-fixes
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 14 Sep 2016 04:46:48 +0000 (16:46 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 14 Sep 2016 05:07:58 +0000 (17:07 +1200)
commitaaeb36e42d7366453f497a7ac68a7b1d76b5e182
tree3463870c3e7ca93860664e8ca04ae45c691bb49d
parente260f0007ce3970903b9e4c1ceee34eb16b6f705
lib/oe/copy_buildsystem: fix building eSDK with indirect paths in BBLAYERS

Indirect paths (e.g. ${TOPDIR}/../meta-something) do generally work if
used in BBLAYERS in bblayers.conf. However, if you built an extensible
SDK with this configuration then the creation of the workspace within
the SDK using devtool in do_populate_sdk_ext failed. This is because
the copy_buildsystem code was no longer correctly recognising that the
core layer ("meta") was part of a repository (e.g. openembedded-core /
poky) that should be shipped together - because of the indirection - and
thus it was splitting out the meta directory, and a number of places in
the code assume that the meta directory is next to the scripts
directory. Use os.path.abspath() to flatten out any indirections.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/lib/oe/copy_buildsystem.py