]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/externalsrc: delete symlinks at start of do_buildclean paule/externalsrc-symlinks-fix
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 15 Sep 2017 04:41:26 +0000 (16:41 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 18 Sep 2017 04:53:49 +0000 (16:53 +1200)
commit15886a7f2dfdc6d98f502528101db60eb9a4d9a6
tree894ac7069ef1bd4cf7016b2919336df2807bc340
parenta15ec979910a74d4490aecf30aa21fa5c2f4e99d
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>
meta/classes/externalsrc.bbclass