diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-03-21 18:14:01 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-25 10:29:13 +0000 |
commit | 58d2e5625fc80cf1b857864687d47445d7a3eb74 (patch) | |
tree | 04fe613913ad9dace2bf73046d0bb21577b68306 /meta/files | |
parent | 06845723d4f4461dc5730da814c4e193b27b5d03 (diff) | |
download | poky-58d2e5625fc80cf1b857864687d47445d7a3eb74.tar.gz |
classes/populate_sdk_ext: parse metadata on minimal SDK install
Instead of skipping the build system preparation step within the
extensible SDK install process when SDK_EXT_TYPE is "minimal", run
bitbake -p so that the cache is populated ready for the first time
devtool is run.
(From OE-Core rev: 6b38a991a3475fb82889428b94563968c7570473)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files')
-rw-r--r-- | meta/files/ext-sdk-prepare.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/files/ext-sdk-prepare.py b/meta/files/ext-sdk-prepare.py index c99e34f371..7887696153 100644 --- a/meta/files/ext-sdk-prepare.py +++ b/meta/files/ext-sdk-prepare.py | |||
@@ -30,10 +30,14 @@ def exec_watch(cmd, **options): | |||
30 | 30 | ||
31 | def main(): | 31 | def main(): |
32 | if len(sys.argv) < 2: | 32 | if len(sys.argv) < 2: |
33 | print('Please specify target to prepare with') | 33 | sdk_targets = [] |
34 | return 1 | 34 | else: |
35 | sdk_targets = ' '.join(sys.argv[1:]).split() | ||
36 | if not sdk_targets: | ||
37 | # Just do a parse so the cache is primed | ||
38 | ret, _ = exec_watch('bitbake -p') | ||
39 | return ret | ||
35 | 40 | ||
36 | sdk_targets = ' '.join(sys.argv[1:]).split() | ||
37 | print('Preparing SDK for %s...' % ', '.join(sdk_targets)) | 41 | print('Preparing SDK for %s...' % ', '.join(sdk_targets)) |
38 | 42 | ||
39 | ret, out = exec_watch('bitbake %s --setscene-only' % ' '.join(sdk_targets)) | 43 | ret, out = exec_watch('bitbake %s --setscene-only' % ' '.join(sdk_targets)) |