From: Zhihang Wei <wzh@ilbers.de>
To: Dimitri Biermann <2mooar@gmail.com>, isar-users@googlegroups.com
Cc: felix.moessbauer@siemens.com
Subject: Re: [PATCH] base: Allow overriding HOST_ARCH
Date: Mon, 24 Aug 2026 11:42:07 +0200 [thread overview]
Message-ID: <7695c831-cdf3-4ad0-9414-032d01850c96@ilbers.de> (raw)
In-Reply-To: <20260817084600.10501-1-2mooar@gmail.com>
Applied to next, thanks.
Zhihang
On 8/17/26 10:46, Dimitri Biermann wrote:
> 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
--
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/7695c831-cdf3-4ad0-9414-032d01850c96%40ilbers.de.
prev parent reply other threads:[~2026-08-24 9:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-17 8:46 Dimitri Biermann
2026-08-24 9:42 ` Zhihang Wei [this message]
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=7695c831-cdf3-4ad0-9414-032d01850c96@ilbers.de \
--to=wzh@ilbers.de \
--cc=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