summaryrefslogtreecommitdiffstats
path: root/meta/files
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-03-21 18:14:01 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-23 14:24:24 +0000
commit6b38a991a3475fb82889428b94563968c7570473 (patch)
treefbaeef42711c9c514dec531ac5005376d0097054 /meta/files
parenta86b426cdd465ec5cb08bb5fa7729e4e673d94bb (diff)
downloadopenembedded-core-6b38a991a3475fb82889428b94563968c7570473.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. 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.py10
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):
def main():
if len(sys.argv) < 2:
- print('Please specify target to prepare with')
- return 1
+ sdk_targets = []
+ else:
+ sdk_targets = ' '.join(sys.argv[1:]).split()
+ if not sdk_targets:
+ # Just do a parse so the cache is primed
+ ret, _ = exec_watch('bitbake -p')
+ return ret
- sdk_targets = ' '.join(sys.argv[1:]).split()
print('Preparing SDK for %s...' % ', '.join(sdk_targets))
ret, out = exec_watch('bitbake %s --setscene-only' % ' '.join(sdk_targets))