]> code.ossystems Code Review - openembedded-core.git/commit
image_types_wic.bbclass: tighten dependency to help do_rm_work_all
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 17 Mar 2017 17:56:59 +0000 (18:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Mar 2017 22:43:02 +0000 (22:43 +0000)
commita678f54e710e46b3cf674ffa41d6432b22effbdf
tree043fbd48d00e723828cce03a1c5ae077c1c21f68
parentcd2ed7f80b555add07795cc0cbaee866e6c193a3
image_types_wic.bbclass: tighten dependency to help do_rm_work_all

Depending on wic-tools:do_build pulls a lot of additional, indirect
dependencies into the image sysroot during do_image_wic as soon as
rm_work.bbclass is active, because then we have
do_build->do_rm_work_all->[all dependencies]. One of those
dependencies is libgcc-initial, which clashes with libgcc itself,
leading to errors in extend_recipe_sysroot like this:

   Exception: FileExistsError: [Errno 17] File exists: '.../tmp/sysroots-components/corei7-64/glibc-initial/usr/include/fstab.h' -> '.../tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/usr/include/fstab.h'

As the image recipe only needs the sysroot of wic-tools and does not
need to wait for the build of wic-tools to finish, depending on
do_populate_sysroot is the better choice and happens to avoid
the problem above.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image_types_wic.bbclass