diff options
-rw-r--r-- | meta/files/ext-sdk-prepare.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/meta_ide.py | 5 | ||||
-rw-r--r-- | meta/recipes-core/meta/build-sysroots.bb | 12 | ||||
-rw-r--r-- | scripts/lib/devtool/sdk.py | 3 |
4 files changed, 16 insertions, 6 deletions
diff --git a/meta/files/ext-sdk-prepare.py b/meta/files/ext-sdk-prepare.py index d191e5e19c..89b0403089 100644 --- a/meta/files/ext-sdk-prepare.py +++ b/meta/files/ext-sdk-prepare.py | |||
@@ -71,7 +71,7 @@ def main(): | |||
71 | 71 | ||
72 | ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet %s' % ' '.join(sdk_targets)) | 72 | ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet %s' % ' '.join(sdk_targets)) |
73 | if not ret: | 73 | if not ret: |
74 | ret = run_command_interruptible('bitbake --quiet build-sysroots') | 74 | ret = run_command_interruptible('bitbake --quiet build-sysroots -c build_native_sysroot && bitbake --quiet build-sysroots -c build_target_sysroot') |
75 | lastlog = get_last_consolelog() | 75 | lastlog = get_last_consolelog() |
76 | if lastlog: | 76 | if lastlog: |
77 | with open(lastlog, 'r') as f: | 77 | with open(lastlog, 'r') as f: |
diff --git a/meta/lib/oeqa/selftest/cases/meta_ide.py b/meta/lib/oeqa/selftest/cases/meta_ide.py index bae98359e5..59270fb3e0 100644 --- a/meta/lib/oeqa/selftest/cases/meta_ide.py +++ b/meta/lib/oeqa/selftest/cases/meta_ide.py | |||
@@ -18,7 +18,8 @@ class MetaIDE(OESelftestTestCase): | |||
18 | def setUpClass(cls): | 18 | def setUpClass(cls): |
19 | super(MetaIDE, cls).setUpClass() | 19 | super(MetaIDE, cls).setUpClass() |
20 | bitbake('meta-ide-support') | 20 | bitbake('meta-ide-support') |
21 | bitbake('build-sysroots') | 21 | bitbake('build-sysroots -c build_native_sysroot') |
22 | bitbake('build-sysroots -c build_target_sysroot') | ||
22 | bb_vars = get_bb_vars(['MULTIMACH_TARGET_SYS', 'DEPLOY_DIR_IMAGE', 'COREBASE']) | 23 | bb_vars = get_bb_vars(['MULTIMACH_TARGET_SYS', 'DEPLOY_DIR_IMAGE', 'COREBASE']) |
23 | cls.environment_script = 'environment-setup-%s' % bb_vars['MULTIMACH_TARGET_SYS'] | 24 | cls.environment_script = 'environment-setup-%s' % bb_vars['MULTIMACH_TARGET_SYS'] |
24 | cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE'] | 25 | cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE'] |
@@ -55,5 +56,5 @@ class MetaIDE(OESelftestTestCase): | |||
55 | 56 | ||
56 | def test_meta_ide_can_run_sdk_tests(self): | 57 | def test_meta_ide_can_run_sdk_tests(self): |
57 | bitbake('-c populate_sysroot gtk+3') | 58 | bitbake('-c populate_sysroot gtk+3') |
58 | bitbake('build-sysroots') | 59 | bitbake('build-sysroots -c build_target_sysroot') |
59 | bitbake('-c testsdk meta-ide-support') | 60 | bitbake('-c testsdk meta-ide-support') |
diff --git a/meta/recipes-core/meta/build-sysroots.bb b/meta/recipes-core/meta/build-sysroots.bb index 1a3b692a1b..db05c111ab 100644 --- a/meta/recipes-core/meta/build-sysroots.bb +++ b/meta/recipes-core/meta/build-sysroots.bb | |||
@@ -22,6 +22,14 @@ deltask collect_spdx_deps | |||
22 | deltask create_runtime_spdx | 22 | deltask create_runtime_spdx |
23 | deltask recipe_qa | 23 | deltask recipe_qa |
24 | 24 | ||
25 | do_build_warn () { | ||
26 | bbwarn "Native or target sysroot population needs to be explicitly selected; please use | ||
27 | bitbake -c build_native_sysroot build-sysroots | ||
28 | bitbake -c build_target_sysroot build-sysroots | ||
29 | or both." | ||
30 | } | ||
31 | addtask do_build_warn before do_build | ||
32 | |||
25 | python do_build_native_sysroot () { | 33 | python do_build_native_sysroot () { |
26 | targetsysroot = d.getVar("STANDALONE_SYSROOT") | 34 | targetsysroot = d.getVar("STANDALONE_SYSROOT") |
27 | nativesysroot = d.getVar("STANDALONE_SYSROOT_NATIVE") | 35 | nativesysroot = d.getVar("STANDALONE_SYSROOT_NATIVE") |
@@ -31,7 +39,7 @@ python do_build_native_sysroot () { | |||
31 | } | 39 | } |
32 | do_build_native_sysroot[cleandirs] = "${STANDALONE_SYSROOT_NATIVE}" | 40 | do_build_native_sysroot[cleandirs] = "${STANDALONE_SYSROOT_NATIVE}" |
33 | do_build_native_sysroot[nostamp] = "1" | 41 | do_build_native_sysroot[nostamp] = "1" |
34 | addtask do_build_native_sysroot before do_build | 42 | addtask do_build_native_sysroot |
35 | 43 | ||
36 | python do_build_target_sysroot () { | 44 | python do_build_target_sysroot () { |
37 | targetsysroot = d.getVar("STANDALONE_SYSROOT") | 45 | targetsysroot = d.getVar("STANDALONE_SYSROOT") |
@@ -42,6 +50,6 @@ python do_build_target_sysroot () { | |||
42 | } | 50 | } |
43 | do_build_target_sysroot[cleandirs] = "${STANDALONE_SYSROOT}" | 51 | do_build_target_sysroot[cleandirs] = "${STANDALONE_SYSROOT}" |
44 | do_build_target_sysroot[nostamp] = "1" | 52 | do_build_target_sysroot[nostamp] = "1" |
45 | addtask do_build_target_sysroot before do_build | 53 | addtask do_build_target_sysroot |
46 | 54 | ||
47 | do_clean[cleandirs] += "${STANDALONE_SYSROOT} ${STANDALONE_SYSROOT_NATIVE}" | 55 | do_clean[cleandirs] += "${STANDALONE_SYSROOT} ${STANDALONE_SYSROOT_NATIVE}" |
diff --git a/scripts/lib/devtool/sdk.py b/scripts/lib/devtool/sdk.py index d717b6c2b8..9aefd7e354 100644 --- a/scripts/lib/devtool/sdk.py +++ b/scripts/lib/devtool/sdk.py | |||
@@ -300,7 +300,8 @@ def sdk_install(args, config, basepath, workspace): | |||
300 | return 2 | 300 | return 2 |
301 | 301 | ||
302 | try: | 302 | try: |
303 | exec_build_env_command(config.init_path, basepath, 'bitbake build-sysroots', watch=True) | 303 | exec_build_env_command(config.init_path, basepath, 'bitbake build-sysroots -c build_native_sysroot', watch=True) |
304 | exec_build_env_command(config.init_path, basepath, 'bitbake build-sysroots -c build_target_sysroot', watch=True) | ||
304 | except bb.process.ExecutionError as e: | 305 | except bb.process.ExecutionError as e: |
305 | raise DevtoolError('Failed to bitbake build-sysroots:\n%s' % (str(e))) | 306 | raise DevtoolError('Failed to bitbake build-sysroots:\n%s' % (str(e))) |
306 | 307 | ||