summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Witt <randy.e.witt@linux.intel.com>2016-02-18 09:17:53 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-21 09:32:40 +0000
commit02201802a19250327f2a9aa83fd98f8588f2b5b9 (patch)
tree9125bc83541d909d3650f4064beb6a29954280a4
parent8c0ba8d9aff6dec6e458739aafb79b185e951afd (diff)
downloadpoky-02201802a19250327f2a9aa83fd98f8588f2b5b9.tar.gz
populate_sdk_ext: Don't ignore SDK_TARGETS value
This fixes a problem where SDK_INSTALL_TARGETS wouldn't pick up the value in SDK_TARGETS. It also removes the inline python to make the code more readable. (From OE-Core rev: 5b7bc7ab44c2cc5d5f217d9ad81a210ea053dc85) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/populate_sdk_ext.bbclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 6e3664257d..7c953010d5 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -32,7 +32,18 @@ SDK_INHERIT_BLACKLIST ?= "buildhistory icecc"
32SDK_UPDATE_URL ?= "" 32SDK_UPDATE_URL ?= ""
33 33
34SDK_TARGETS ?= "${PN}" 34SDK_TARGETS ?= "${PN}"
35SDK_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 ''}" 35
36def get_sdk_install_targets(d):
37 sdk_install_targets = ''
38 if d.getVar('SDK_EXT_TYPE', True) != 'minimal':
39 sdk_install_targets = d.getVar('SDK_TARGETS', True)
40
41 if d.getVar('SDK_INCLUDE_PKGDATA', True) == '1':
42 sdk_install_targets += ' meta-world-pkgdata:do_allpackagedata'
43
44 return sdk_install_targets
45
46SDK_INSTALL_TARGETS = "${@get_sdk_install_targets(d)}"
36OE_INIT_ENV_SCRIPT ?= "oe-init-build-env" 47OE_INIT_ENV_SCRIPT ?= "oe-init-build-env"
37 48
38# The files from COREBASE that you want preserved in the COREBASE copied 49# The files from COREBASE that you want preserved in the COREBASE copied