[PATCH 3/3] ARM64: suppress -mabi=lp64 when built with clang

Ahmad Fatoum a.fatoum at barebox.org
Wed Jun 10 08:37:27 PDT 2026


Linux also drops this option when built with clang, so do likewise in
barebox.

Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
 arch/arm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index edf6f7d74eb5..94904fee13e8 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -75,7 +75,7 @@ tune-$(CONFIG_CPU_ARM920T)	:=-mtune=arm9tdmi
 tune-$(CONFIG_CPU_ARM926T)	:=-mtune=arm9tdmi
 tune-$(CONFIG_CPU_XSCALE)	:=$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale
 
-CFLAGS_ABI-$(CONFIG_CPU_64)	:=-mabi=lp64
+CFLAGS_ABI-$(CONFIG_CPU_64)	:=$(call cc-option,-mabi=lp64)
 CFLAGS_ABI-$(CONFIG_CPU_32)	:=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
 CFLAGS_ABI-$(CONFIG_AEABI)	:=-mabi=aapcs-linux
 
-- 
2.47.3




More information about the barebox mailing list