]> code.ossystems Code Review - openembedded-core.git/commit
classes/externalsrc: delete symlinks at start of do_buildclean
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 18 Sep 2017 04:54:42 +0000 (16:54 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Sep 2017 08:23:59 +0000 (09:23 +0100)
commit927b3b05a7f6b85967f7375b1942605fe8d37d0c
tree01872f368554dbe64b56f7dddb26be7f6c9bbe4a
parent752a8a02d52cf868d1c182672d6ceb3d455dfa1e
classes/externalsrc: delete symlinks at start of do_buildclean

To help users find the work and log directories (especially within the
eSDK) we create symlinks to these from the source tree. However during
do_buildclean we call "make clean", and some project Makefiles which
delete something like "*/*/lib" which will match files underneath the
oe-workdir symlink and fail. do_buildclean is called from do_clean which
is in turn called by devtool reset by default, and thus devtool reset is
blocked. An example of a recipe where this is visible is the openssl-qat
recipe in meta-intel.

In order to fix this, delete the symlinks at the start of do_buildclean
since we shouldn't need them at that point anyway, and thus make clean
won't be able to trip over them.

Fixes [YOCTO #11036].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/externalsrc.bbclass