]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: add a lazy default for SDKMACHINE
authorRoss Burton <ross.burton@intel.com>
Thu, 22 Sep 2016 12:24:30 +0000 (13:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Sep 2016 13:55:02 +0000 (14:55 +0100)
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>
meta/conf/bitbake.conf

index b6a1a68f53e46f6d69a651fd107665edd9ca6f0e..359f787b29c7018d61f7700d05ac456c97e1d391 100644 (file)
@@ -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')]}"