]> code.ossystems Code Review - openembedded-core.git/commit
devtool: add build-sdk subcommand
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 2 Mar 2016 10:44:21 +0000 (23:44 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Mar 2016 17:11:00 +0000 (17:11 +0000)
commit59e207ff6dd4b50a8905e14bc9292cf2794f4e7a
tree20a030693fa60bd5ca55d03ed9afa5fb50f9a526
parente8f6db9436dfc923e236f2cbc08f357e3b24fd5d
devtool: add build-sdk subcommand

Add a build-sdk command which is only available within the extensible
SDK that builds a derivative extensible SDK. The idea is recipes in the
workspace become a part of the new SDK - for example, this allows taking
a vendor provided SDK, adding a few libs and then producing a new SDK
with those included.

When normally building the extensible SDK, the workspace is excluded;
here we need to copy into the new SDK (renaming it in the process); the
recipes' task signatures become locked and thus the sources are no
longer needed, so they are removed along with the workspace bbappends
which would interfere with the locked signatures. Additionally we need
to just copy the configuration files (i.e. local.conf and auto.conf)
rather than filtering and appending to them since that work has already
been done when constructing the original SDK. The extra sstate artifacts
from workspace recipes are also determined and copied into the new SDK
in minimal mode (on the assumption that you won't set up a new sstate
mirror).

This reuses some code from build-image, so that needed to be
generalised to allow that.

Implements [YOCTO #8892].

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/lib/oe/copy_buildsystem.py
scripts/lib/devtool/build_image.py
scripts/lib/devtool/build_sdk.py [new file with mode: 0644]