From b24f48db7dcc3baa580fa547c6b7b717ae718228 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 17 Nov 2022 12:12:42 +0100 Subject: [PATCH] arch/arm/armv7: Disable generating neon FPU code By default clang generates code with neon instructions. These are not supported on all arm targets so default to fpu=none. Change-Id: I48fc505107d131466be39f466151df62b2d2bd0b Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/69745 Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins) --- src/arch/arm/armv7/Makefile.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arch/arm/armv7/Makefile.inc b/src/arch/arm/armv7/Makefile.inc index d9f78e5f84..53261eee94 100644 --- a/src/arch/arm/armv7/Makefile.inc +++ b/src/arch/arm/armv7/Makefile.inc @@ -9,6 +9,7 @@ armv7_asm_flags = -Wa,-mthumb -Wa,-mimplicit-it=always ifeq ($(CONFIG_COMPILER_GCC),y) armv7_asm_flags += -Wa,-mno-warn-deprecated else # CLANG +armv7_flags += -mfpu=none bootblock-ld-ccopts += -target arm-eabi verstage-ld-ccopts += -target arm-eabi romstage-ld-ccopts += -target arm-eabi