summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-11-19 09:59:36 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-12 08:42:28 +0000
commit3653b17aea68721e099427d6444705cd447cd67b (patch)
tree7a41568f139a0e5be9292d64381f06c1a6881953 /meta/classes
parent8879571d116484eaaf3e01cbb9dd2bc4bb618476 (diff)
downloadpoky-3653b17aea68721e099427d6444705cd447cd67b.tar.gz
classes/populate_sdk_ext: fail if SDK_ARCH != BUILD_ARCH
The extensible SDK relies upon uninative, and with the way that uninative works, the build system architecture must be the same as the SDK architecture or the extensible SDK won't be usable. At some point in future hopefully we can remove this limitation, but until then it's disingenuous to allow this to build, so add a check to ensure SDK_ARCH == BUILD_ARCH and fail if it isn't. (From OE-Core master rev: 9e30e849eda3b0a0c54d3f7ed0102760fdaef06c) (From OE-Core rev: 1042d020d5d1b6af3f32e5fe29562d1dce765f0a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 736f17f489..dc052612c7 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -261,6 +261,11 @@ SDK_POST_INSTALL_COMMAND_task-populate-sdk-ext = "${sdk_ext_postinst}"
261SDK_POSTPROCESS_COMMAND_prepend_task-populate-sdk-ext = "copy_buildsystem; install_tools; " 261SDK_POSTPROCESS_COMMAND_prepend_task-populate-sdk-ext = "copy_buildsystem; install_tools; "
262 262
263fakeroot python do_populate_sdk_ext() { 263fakeroot python do_populate_sdk_ext() {
264 # FIXME hopefully we can remove this restriction at some point, but uninative
265 # currently forces this upon us
266 if d.getVar('SDK_ARCH', True) != d.getVar('BUILD_ARCH', True):
267 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)))
268
264 bb.build.exec_func("do_populate_sdk", d) 269 bb.build.exec_func("do_populate_sdk", d)
265} 270}
266 271