diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 01:13:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 23:27:11 +0000 |
commit | f73172e64e1360ff27b206a7138f1fe894ef7533 (patch) | |
tree | 4a5a43df58cc90a67dd0cbd5596fdc8390078ce1 /scripts/lib/devtool | |
parent | 51d6f19fa80be07e71ee14d3b3d273d11074d52c (diff) | |
download | poky-f73172e64e1360ff27b206a7138f1fe894ef7533.tar.gz |
devtool/sdk: Run build-sysroots after installing new things
After running sdk-install we need to ensure that the standalone sysroots are
updated as done when the eSDK is originally built. Add such a call so this
happens automatically and the envrionment scripts in the SDK work correctly
after updates.
(From OE-Core rev: 4f422071d6f9a074986f399d9e648977bd2e0a68)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r-- | scripts/lib/devtool/sdk.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/devtool/sdk.py b/scripts/lib/devtool/sdk.py index f629db1876..e8bf0ad98c 100644 --- a/scripts/lib/devtool/sdk.py +++ b/scripts/lib/devtool/sdk.py | |||
@@ -306,6 +306,12 @@ def sdk_install(args, config, basepath, workspace): | |||
306 | if failed: | 306 | if failed: |
307 | return 2 | 307 | return 2 |
308 | 308 | ||
309 | try: | ||
310 | exec_build_env_command(config.init_path, basepath, 'bitbake build-sysroots', watch=True) | ||
311 | except bb.process.ExecutionError as e: | ||
312 | raise DevtoolError('Failed to bitbake build-sysroots:\n%s' % (str(e))) | ||
313 | |||
314 | |||
309 | def register_commands(subparsers, context): | 315 | def register_commands(subparsers, context): |
310 | """Register devtool subcommands from the sdk plugin""" | 316 | """Register devtool subcommands from the sdk plugin""" |
311 | if context.fixed_setup: | 317 | if context.fixed_setup: |