]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: default SDKMACHINE to the build host architecture
authorRoss Burton <ross@burtonini.com>
Tue, 22 Dec 2020 17:23:14 +0000 (17:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Dec 2020 08:25:10 +0000 (08:25 +0000)
Currently there's a limitation that Extensible SDKs can only be build on a
machine with the same architecture as the SDK.

However, SDKMACHINE defaults to x86-64, which means eSDKs cannot be built
out of the box on arm64 systems.

By defaulting SDKMACHINE to ${BUILD_ARCH} we generate SDKs for the build
host, so they'll always work out of the box.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index da6db9f5950291f18f73c8347bfbb5b9ab8d65da..92b6866d4d2dbfbcb856fbc1ee7a5f6f9ee262b5 100644 (file)
@@ -136,7 +136,7 @@ TARGET_CC_ARCH = "${TUNE_CCARGS}"
 TARGET_LD_ARCH = "${TUNE_LDARGS}"
 TARGET_AS_ARCH = "${TUNE_ASARGS}"
 
-SDKMACHINE ??= "x86_64"
+SDKMACHINE ??= "${BUILD_ARCH}"
 SDK_OS = "${BUILD_OS}"
 SDK_VENDOR = "-oesdk"
 SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}"