]> code.ossystems Code Review - openembedded-core.git/commit
classes/populate_sdk_ext: prevent image construction from executing on install
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 19 Oct 2015 16:33:09 +0000 (17:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Oct 2015 09:11:44 +0000 (10:11 +0100)
commitd2a2962897b89731a5705b0cbc7c6f36aa53dcc8
tree56195e5b47f3cef3dced791088c95364b7558efa
parent59a3789c678bf58c0a04b8def416246654680841
classes/populate_sdk_ext: prevent image construction from executing on install

In order to prepare the build system within the extensible SDK, we
actually go ahead and build the targets specified by SDK_TARGETS (by
default the image the SDK was built for). Assuming that's an image, we
don't actually need to build the image itself - we just need to have
everything done up to the point before building the image, so that we
have everything needed in the sysroot.

In order to do this, create temporary bbappends for each of the targets
in the workspace layer that stub out do_rootfs and related tasks if they
exist. This is a little bit of a hack but is the least intrusive fix at
this point. To make things a bit tidier, I have split out the
preparation commands into a separate script so we can run that in the
appropriate environment rather than all the commands separately.

Fixes [YOCTO #7590].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_ext.bbclass
meta/files/ext-sdk-prepare.sh [new file with mode: 0644]