All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] bitbake.conf: default SDKMACHINE to the build host architecture
@ 2020-12-22 17:23 Ross Burton
  2020-12-22 17:23 ` [PATCH 2/2] local.conf: add aarch64 to the SDKMACHINE example values Ross Burton
  0 siblings, 1 reply; 2+ messages in thread
From: Ross Burton @ 2020-12-22 17:23 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index da6db9f595..92b6866d4d 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -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}"
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] local.conf: add aarch64 to the SDKMACHINE example values
  2020-12-22 17:23 [PATCH 1/2] bitbake.conf: default SDKMACHINE to the build host architecture Ross Burton
@ 2020-12-22 17:23 ` Ross Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2020-12-22 17:23 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-poky/conf/local.conf.sample | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-poky/conf/local.conf.sample b/meta-poky/conf/local.conf.sample
index 68e71b930b..096359ee8a 100644
--- a/meta-poky/conf/local.conf.sample
+++ b/meta-poky/conf/local.conf.sample
@@ -112,7 +112,7 @@ PACKAGE_CLASSES ?= "package_rpm"
 # This variable specifies the architecture to build SDK items for and means
 # you can build the SDK packages for architectures other than the machine you are
 # running the build on (i.e. building i686 packages on an x86_64 host).
-# Supported values are i686 and x86_64
+# Supported values are i686, x86_64, aarch64
 #SDKMACHINE ?= "i686"
 
 #
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-22 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-22 17:23 [PATCH 1/2] bitbake.conf: default SDKMACHINE to the build host architecture Ross Burton
2020-12-22 17:23 ` [PATCH 2/2] local.conf: add aarch64 to the SDKMACHINE example values Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.