* [PATCH] base: Allow overriding HOST_ARCH
@ 2026-08-17 8:46 Dimitri Biermann
0 siblings, 0 replies; only message in thread
From: Dimitri Biermann @ 2026-08-17 8:46 UTC (permalink / raw)
To: isar-users; +Cc: felix.moessbauer, Dimitri Biermann
Commit 9634b274 made HOST_ARCH an unconditional immediate assignment.
This overwrites values supplied through configuration or the BitBake
environment. It prevents creating, for example, an arm64 SDK on an
amd64 build machine.
Evaluate the detected architecture immediately in a separate variable
and retain HOST_ARCH as a weak default.
Fixes: 9634b27488df ("improve performance by immediate evaluation of HOST_ARCH")
Closes: https://github.com/ilbers/isar/issues/127
Signed-off-by: Dimitri Biermann <2mooar@gmail.com>
---
meta/classes-global/base.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index f074eee6..60b15b6f 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -60,7 +60,8 @@ def get_deb_host_arch():
).decode('utf-8').strip()
return host_arch
# immediately evaluate to avoid costly process call
-HOST_ARCH := "${@get_deb_host_arch()}"
+DETECTED_HOST_ARCH := "${@get_deb_host_arch()}"
+HOST_ARCH ??= "${DETECTED_HOST_ARCH}"
HOST_DISTRO ??= "${DISTRO}"
# Inject the PREFERRED_PROVIDERs for multiarch variants. This corresponds to
--
2.50.1 (Apple Git-155)
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260817084600.10501-1-2mooar%40gmail.com.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-17 9:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 8:46 [PATCH] base: Allow overriding HOST_ARCH Dimitri Biermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox