diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-01-23 00:59:48 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-24 09:40:32 +0000 |
commit | d3a4f72896aaea7374bd8915cfe3adaaecc55a2d (patch) | |
tree | 0bd76cd1c224afe941bed4b0bb88551647cd7cb7 /scripts | |
parent | a9dfcedd21a5fe212d237633f40e2efcdfb34690 (diff) | |
download | poky-d3a4f72896aaea7374bd8915cfe3adaaecc55a2d.tar.gz |
classes/populate_sdk_ext: add option to bring in pkgdata for world
Add a variable SDK_INCLUDE_PKGDATA which you can set to "1" to include
pkgdata for all recipes in the world target. There are a couple of uses
for this:
1) If you use "devtool add" to add a recipe that builds something which
depends on anything in world, the dependency can then be correctly
mapped to the recipe providing it and that recipe can be added to
DEPENDS, since we have the pkg-config and shared library dependency
data within pkgdata.
2) You'll be able to search for these recipes and any files they
package for the target with "devtool search" since that also uses
pkgdata
This of course assumes you've tailored world through EXCLUDE_FROM_WORLD
to only include recipes you'd want built in your distro, but I think
that's a reasonable assumption; failing that there is a
WORLD_PKGDATA_EXCLUDE variable that you can set to exclude any recipes
you don't want.
Note that this patch relies on functionality implemented in a recent
BitBake patch and will not work without it.
Implements [YOCTO #8600].
(From OE-Core rev: 67149ea097d6fab7496b43e85a40853f40bd527e)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/sdk.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/devtool/sdk.py b/scripts/lib/devtool/sdk.py index 0872df6bd1..68139aaf3c 100644 --- a/scripts/lib/devtool/sdk.py +++ b/scripts/lib/devtool/sdk.py | |||
@@ -175,12 +175,12 @@ def sdk_update(args, config, basepath, workspace): | |||
175 | 175 | ||
176 | if not args.skip_prepare: | 176 | if not args.skip_prepare: |
177 | # Run bitbake command for the whole SDK | 177 | # Run bitbake command for the whole SDK |
178 | sdk_targets = config.get('SDK', 'sdk_targets') | 178 | sdk_update_targets = config.get('SDK', 'sdk_update_targets', config.get('SDK', 'sdk_targets')) |
179 | logger.info("Preparing build system... (This may take some time.)") | 179 | logger.info("Preparing build system... (This may take some time.)") |
180 | try: | 180 | try: |
181 | exec_build_env_command(config.init_path, basepath, 'bitbake %s --setscene-only' % sdk_targets) | 181 | exec_build_env_command(config.init_path, basepath, 'bitbake %s --setscene-only' % sdk_update_targets) |
182 | except: | 182 | except: |
183 | logger.error('bitbake %s failed' % sdk_targets) | 183 | logger.error('bitbake %s failed' % sdk_update_targets) |
184 | return -1 | 184 | return -1 |
185 | return 0 | 185 | return 0 |
186 | 186 | ||