From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 10 Jun 2026 16:32:11 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wXJyV-004Mz6-2v for lore@lore.pengutronix.de; Wed, 10 Jun 2026 16:32:11 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wXJyV-0004v5-8H for lore@pengutronix.de; Wed, 10 Jun 2026 16:32:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Z9VxsFGTdMZI8fjQpke/dvpgFyNFC3kZR+tQuU4s5jY=; b=z0VLVQcCge3Y1nSkBsO3msKC6a Lwo7hjO0ITfKe6kVcUeR6vOTOA2YdzujTg1dGWFqBhZ4vssNn0XBZ3A00kPDtlpz3gtjLzKOl0M9Q 5MKttEThUomwHZQd1+RaqSiwhW1A48AuFSmv50icJTRLFB/nGYK1nFGSZRQvmsss71cCaSqm4yl89 MRZUXN/prGw9SXDAMkNUYvOLoXVLLYFDvdjRkQB1q8yl0MHPc6CVZyplidAK1dDD92XunSklPNSF/ d4hk+xomT2VBbdbf+HVi+AsiIFBXh6FHuSpGn1YdPXDaECwShWpCy1C/+49p9T0PJgfAk02lPUdmZ fuN4lr4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wXJxB-00000007thX-2qhJ; Wed, 10 Jun 2026 14:30:49 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wXJx9-00000007th0-1OXc for barebox@lists.infradead.org; Wed, 10 Jun 2026 14:30:48 +0000 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wXJx7-0004g5-QL for barebox@lists.infradead.org; Wed, 10 Jun 2026 16:30:45 +0200 Message-ID: Date: Wed, 10 Jun 2026 16:30:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: "barebox@lists.infradead.org" References: <20260610135904.2717667-1-a.fatoum@barebox.org> Content-Language: en-US From: Ahmad Fatoum In-Reply-To: <20260610135904.2717667-1-a.fatoum@barebox.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260610_073047_375570_F76BE385 X-CRM114-Status: GOOD ( 15.04 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-5.0 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [PATCH] fixup! kbuild: sync with Linux v6.17 X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) 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 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),)