From: Ahmad Fatoum <a.fatoum@barebox.org>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: [PATCH] fixup! kbuild: sync with Linux v6.17
Date: Wed, 10 Jun 2026 16:30:44 +0200 [thread overview]
Message-ID: <e645ed01-3f61-4ee1-88c8-c72a0b4dd3d0@barebox.org> (raw)
In-Reply-To: <20260610135904.2717667-1-a.fatoum@barebox.org>
On 6/10/26 15:59, Ahmad Fatoum wrote:
> Makefile: clang: fail non-sandbox LLVM builds early
>
> For the reasons outlines in aaea175ad00f
> ("Makefile: clang: fail non-sandbox LLVM builds early"), restore
> sandbox-only clang support.
>
> The code that has been imported here is wrong anyway, because it doesn't
> account for the fact that SRCARCH in barebox is never arm64, even for
> CONFIG_ARM64. This is not trivially fixable either as this file is
> included before CONFIG_ options are available, so we can't actually know
> whether it's arm64 or arm32...
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
Please dismiss. I will try to fix this instead.
> ---
> scripts/Makefile.clang | 10 +---------
> 1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/scripts/Makefile.clang b/scripts/Makefile.clang
> index e93ffb77aa10..4e4b620e1645 100644
> --- a/scripts/Makefile.clang
> +++ b/scripts/Makefile.clang
> @@ -2,15 +2,7 @@
> # Individual arch/{arch}/Makefiles should use -EL/-EB to set intended
> # endianness and -m32/-m64 to set word size based on Kconfigs instead of
> # relying on the target triple.
> -CLANG_TARGET_FLAGS_arm := arm-linux-gnueabi
> -CLANG_TARGET_FLAGS_arm64 := aarch64-linux-gnu
> -CLANG_TARGET_FLAGS_mips := mipsel-linux-gnu
> -CLANG_TARGET_FLAGS_powerpc := powerpc64le-linux-gnu
> -CLANG_TARGET_FLAGS_riscv := riscv64-linux-gnu
> -CLANG_TARGET_FLAGS_x86 := x86_64-linux-gnu
> -# This is only for i386 UM builds, which need the 32-bit target not -m32
> -CLANG_TARGET_FLAGS_i386 := i386-linux-gnu
> -CLANG_TARGET_FLAGS_sandbox := $(CLANG_TARGET_FLAGS_$(SUBARCH))
> +CLANG_TARGET_FLAGS_sandbox := $(shell $(CC) -print-target-triple)
> CLANG_TARGET_FLAGS := $(CLANG_TARGET_FLAGS_$(SRCARCH))
>
> ifeq ($(CLANG_TARGET_FLAGS),)
prev parent reply other threads:[~2026-06-10 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-10 13:59 Ahmad Fatoum
2026-06-10 14:30 ` Ahmad Fatoum [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=e645ed01-3f61-4ee1-88c8-c72a0b4dd3d0@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/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