diff options
| -rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index a6badb84c6..9e2fc61699 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
| @@ -40,12 +40,17 @@ def get_sdk_install_targets(d): | |||
| 40 | if d.getVar('SDK_EXT_TYPE', True) != 'minimal': | 40 | if d.getVar('SDK_EXT_TYPE', True) != 'minimal': |
| 41 | sdk_install_targets = d.getVar('SDK_TARGETS', True) | 41 | sdk_install_targets = d.getVar('SDK_TARGETS', True) |
| 42 | 42 | ||
| 43 | depd = d.getVar('BB_TASKDEPDATA', False) | ||
| 44 | for v in depd.itervalues(): | ||
| 45 | if v[1] == 'do_image_complete': | ||
| 46 | if v[0] not in sdk_install_targets: | ||
| 47 | sdk_install_targets += ' {}'.format(v[0]) | ||
| 48 | |||
| 43 | if d.getVar('SDK_INCLUDE_PKGDATA', True) == '1': | 49 | if d.getVar('SDK_INCLUDE_PKGDATA', True) == '1': |
| 44 | sdk_install_targets += ' meta-world-pkgdata:do_allpackagedata' | 50 | sdk_install_targets += ' meta-world-pkgdata:do_allpackagedata' |
| 45 | 51 | ||
| 46 | return sdk_install_targets | 52 | return sdk_install_targets |
| 47 | 53 | ||
| 48 | SDK_INSTALL_TARGETS = "${@get_sdk_install_targets(d)}" | ||
| 49 | OE_INIT_ENV_SCRIPT ?= "oe-init-build-env" | 54 | OE_INIT_ENV_SCRIPT ?= "oe-init-build-env" |
| 50 | 55 | ||
| 51 | # The files from COREBASE that you want preserved in the COREBASE copied | 56 | # The files from COREBASE that you want preserved in the COREBASE copied |
| @@ -344,12 +349,15 @@ SDK_POST_INSTALL_COMMAND_task-populate-sdk-ext = "${sdk_ext_postinst}" | |||
| 344 | 349 | ||
| 345 | SDK_POSTPROCESS_COMMAND_prepend_task-populate-sdk-ext = "copy_buildsystem; install_tools; " | 350 | SDK_POSTPROCESS_COMMAND_prepend_task-populate-sdk-ext = "copy_buildsystem; install_tools; " |
| 346 | 351 | ||
| 352 | SDK_INSTALL_TARGETS = "" | ||
| 347 | fakeroot python do_populate_sdk_ext() { | 353 | fakeroot python do_populate_sdk_ext() { |
| 348 | # FIXME hopefully we can remove this restriction at some point, but uninative | 354 | # FIXME hopefully we can remove this restriction at some point, but uninative |
| 349 | # currently forces this upon us | 355 | # currently forces this upon us |
| 350 | if d.getVar('SDK_ARCH', True) != d.getVar('BUILD_ARCH', True): | 356 | if d.getVar('SDK_ARCH', True) != d.getVar('BUILD_ARCH', True): |
| 351 | bb.fatal('The extensible SDK can currently only be built for the same architecture as the machine being built on - SDK_ARCH is set to %s (likely via setting SDKMACHINE) which is different from the architecture of the build machine (%s). Unable to continue.' % (d.getVar('SDK_ARCH', True), d.getVar('BUILD_ARCH', True))) | 357 | bb.fatal('The extensible SDK can currently only be built for the same architecture as the machine being built on - SDK_ARCH is set to %s (likely via setting SDKMACHINE) which is different from the architecture of the build machine (%s). Unable to continue.' % (d.getVar('SDK_ARCH', True), d.getVar('BUILD_ARCH', True))) |
| 352 | 358 | ||
| 359 | d.setVar('SDK_INSTALL_TARGETS', get_sdk_install_targets(d)) | ||
| 360 | |||
| 353 | bb.build.exec_func("do_populate_sdk", d) | 361 | bb.build.exec_func("do_populate_sdk", d) |
| 354 | } | 362 | } |
| 355 | 363 | ||
