diff options
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)) |