summaryrefslogtreecommitdiff
path: root/scripts/lib/devtool/sdk.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 01:13:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 16:11:39 +0000
commit4f422071d6f9a074986f399d9e648977bd2e0a68 (patch)
treed309777862d7d85ca020ca81c7d8bc0e2c5db3bb /scripts/lib/devtool/sdk.py
parent866b55905eabf93f45c10a08d5b53c459ac4c056 (diff)
downloadopenembedded-core-4f422071d6f9a074986f399d9e648977bd2e0a68.tar.gz
openembedded-core-4f422071d6f9a074986f399d9e648977bd2e0a68.tar.bz2
openembedded-core-4f422071d6f9a074986f399d9e648977bd2e0a68.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/sdk.py')
-rw-r--r--scripts/lib/devtool/sdk.py6
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):
if failed:
return 2
+ try:
+ exec_build_env_command(config.init_path, basepath, 'bitbake build-sysroots', watch=True)
+ except bb.process.ExecutionError as e:
+ raise DevtoolError('Failed to bitbake build-sysroots:\n%s' % (str(e)))
+
+
def register_commands(subparsers, context):
"""Register devtool subcommands from the sdk plugin"""
if context.fixed_setup: