diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index ba30023444..caf8b6e6cd 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -18,6 +18,9 @@ SDK_RELOCATE_AFTER_INSTALL_task-populate-sdk-ext = "0" | |||
18 | SDK_EXT = "" | 18 | SDK_EXT = "" |
19 | SDK_EXT_task-populate-sdk-ext = "-ext" | 19 | SDK_EXT_task-populate-sdk-ext = "-ext" |
20 | 20 | ||
21 | # Options are full or minimal | ||
22 | SDK_EXT_TYPE ?= "full" | ||
23 | |||
21 | SDK_LOCAL_CONF_WHITELIST ?= "" | 24 | SDK_LOCAL_CONF_WHITELIST ?= "" |
22 | SDK_LOCAL_CONF_BLACKLIST ?= "CONF_VERSION \ | 25 | SDK_LOCAL_CONF_BLACKLIST ?= "CONF_VERSION \ |
23 | BB_NUMBER_THREADS \ | 26 | BB_NUMBER_THREADS \ |
@@ -29,7 +32,7 @@ SDK_INHERIT_BLACKLIST ?= "buildhistory icecc" | |||
29 | SDK_UPDATE_URL ?= "" | 32 | SDK_UPDATE_URL ?= "" |
30 | 33 | ||
31 | SDK_TARGETS ?= "${PN}" | 34 | SDK_TARGETS ?= "${PN}" |
32 | SDK_INSTALL_TARGETS = "${SDK_TARGETS} ${@'meta-world-pkgdata:do_allpackagedata' if d.getVar('SDK_INCLUDE_PKGDATA', True) == '1' else ''}" | 35 | SDK_INSTALL_TARGETS = "${@SDK_TARGETS if d.getVar('SDK_EXT_TYPE', True) != 'minimal' else ''} ${@'meta-world-pkgdata:do_allpackagedata' if d.getVar('SDK_INCLUDE_PKGDATA', True) == '1' else ''}" |
33 | OE_INIT_ENV_SCRIPT ?= "oe-init-build-env" | 36 | OE_INIT_ENV_SCRIPT ?= "oe-init-build-env" |
34 | 37 | ||
35 | # The files from COREBASE that you want preserved in the COREBASE copied | 38 | # The files from COREBASE that you want preserved in the COREBASE copied |
@@ -203,10 +206,6 @@ python copy_buildsystem () { | |||
203 | bb.utils.remove(sstate_out, True) | 206 | bb.utils.remove(sstate_out, True) |
204 | # uninative.bbclass sets NATIVELSBSTRING to 'universal' | 207 | # uninative.bbclass sets NATIVELSBSTRING to 'universal' |
205 | fixedlsbstring = 'universal' | 208 | fixedlsbstring = 'universal' |
206 | oe.copy_buildsystem.create_locked_sstate_cache(lockedsigs_pruned, | ||
207 | d.getVar('SSTATE_DIR', True), | ||
208 | sstate_out, d, | ||
209 | fixedlsbstring) | ||
210 | 209 | ||
211 | # Add packagedata if enabled | 210 | # Add packagedata if enabled |
212 | if d.getVar('SDK_INCLUDE_PKGDATA', True) == '1': | 211 | if d.getVar('SDK_INCLUDE_PKGDATA', True) == '1': |
@@ -218,7 +217,9 @@ python copy_buildsystem () { | |||
218 | d.getVar('STAGING_DIR_HOST', True) + '/world-pkgdata/locked-sigs-pkgdata.inc', | 217 | d.getVar('STAGING_DIR_HOST', True) + '/world-pkgdata/locked-sigs-pkgdata.inc', |
219 | lockedsigs_pruned, | 218 | lockedsigs_pruned, |
220 | lockedsigs_copy) | 219 | lockedsigs_copy) |
221 | oe.copy_buildsystem.create_locked_sstate_cache(lockedsigs_copy, | 220 | |
221 | if d.getVar('SDK_EXT_TYPE', True) != 'minimal': | ||
222 | oe.copy_buildsystem.create_locked_sstate_cache(lockedsigs_pruned, | ||
222 | d.getVar('SSTATE_DIR', True), | 223 | d.getVar('SSTATE_DIR', True), |
223 | sstate_out, d, | 224 | sstate_out, d, |
224 | fixedlsbstring) | 225 | fixedlsbstring) |
@@ -302,7 +303,7 @@ sdk_ext_postinst() { | |||
302 | # For now this is where uninative.bbclass expects the tarball | 303 | # For now this is where uninative.bbclass expects the tarball |
303 | mv *-nativesdk-libc.tar.* $target_sdk_dir/`dirname ${oe_init_build_env_path}` | 304 | mv *-nativesdk-libc.tar.* $target_sdk_dir/`dirname ${oe_init_build_env_path}` |
304 | 305 | ||
305 | if [ "$prepare_buildsystem" != "no" ]; then | 306 | if [ "$prepare_buildsystem" != "no" -a -n "${@SDK_INSTALL_TARGETS.strip()}" ]; then |
306 | printf "Preparing build system...\n" | 307 | printf "Preparing build system...\n" |
307 | # dash which is /bin/sh on Ubuntu will not preserve the | 308 | # dash which is /bin/sh on Ubuntu will not preserve the |
308 | # current working directory when first ran, nor will it set $1 when | 309 | # current working directory when first ran, nor will it set $1 when |