From: Dimitri Biermann <2mooar@gmail.com>
To: isar-users@googlegroups.com
Cc: felix.moessbauer@siemens.com, Dimitri Biermann <2mooar@gmail.com>
Subject: [PATCH] base: Allow overriding HOST_ARCH
Date: Mon, 17 Aug 2026 10:46:00 +0200 [thread overview]
Message-ID: <20260817084600.10501-1-2mooar@gmail.com> (raw)
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.
reply other threads:[~2026-08-17 9:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260817084600.10501-1-2mooar@gmail.com \
--to=2mooar@gmail.com \
--cc=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox