summaryrefslogtreecommitdiff
path: root/meta/conf
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-09-22 13:24:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-23 14:55:02 +0100
commit6bd507ef36578ba7bee6ef8b3f8f6465afca4e20 (patch)
tree9179a52d13407cec45483d27d7e18de8ac708b98 /meta/conf
parentb7d1a310f6b880e92b124a78af3c948abaab4236 (diff)
downloadopenembedded-core-6bd507ef36578ba7bee6ef8b3f8f6465afca4e20.tar.gz
openembedded-core-6bd507ef36578ba7bee6ef8b3f8f6465afca4e20.tar.bz2
openembedded-core-6bd507ef36578ba7bee6ef8b3f8f6465afca4e20.zip
bitbake.conf: add a lazy default for SDKMACHINE
If the user doesn't set SDKMACHINE in their local.conf then uninative and buildtools will fail in obscure ways, so ensure that a default value is set. Also as SDK_ARCH will be overritten then loading the machine-sdk configuration file, don't bother assigning it. Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/conf')
-rw-r--r--meta/conf/bitbake.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index b6a1a68f53..359f787b29 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -129,7 +129,7 @@ TARGET_CC_ARCH = "${TUNE_CCARGS}"
TARGET_LD_ARCH = "${TUNE_LDARGS}"
TARGET_AS_ARCH = "${TUNE_ASARGS}"
-SDK_ARCH = "${BUILD_ARCH}"
+SDKMACHINE ??= "x86_64"
SDK_OS = "${BUILD_OS}"
SDK_VENDOR = "-oesdk"
SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + d.getVar('SDK_OS', True), ''][d.getVar('SDK_OS', True) == ('' or 'custom')]}"