Damien Zammit has uploaded this change for review. ( https://review.coreboot.org/21357
Change subject: armv7/Makefile.inc: Make cflags compiler agnostic ......................................................................
armv7/Makefile.inc: Make cflags compiler agnostic
clang does not know about -Wa,-mthumb so use the right flags
Change-Id: I00b7ab5ad25349382bef3cc5001f3a3297f11ca0 Signed-off-by: Damien Zammit damien@zamaudio.com --- M src/arch/arm/armv7/Makefile.inc 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/57/21357/1
diff --git a/src/arch/arm/armv7/Makefile.inc b/src/arch/arm/armv7/Makefile.inc index fe0b446..b25a4e9 100644 --- a/src/arch/arm/armv7/Makefile.inc +++ b/src/arch/arm/armv7/Makefile.inc @@ -20,7 +20,11 @@ armv7-m_flags = -march=armv7-m $(armv7_flags) -D__COREBOOT_ARM_V7_M__ armv7-r_flags = -march=armv7-r $(armv7_flags) -D__COREBOOT_ARM_V7_R__
+ifeq ($(CONFIG_COMPILER_GCC),y) armv7_asm_flags = -Wa,-mthumb -Wa,-mimplicit-it=always -Wa,-mno-warn-deprecated +else +armv7_asm_flags = -mthumb -mimplicit-it=always +endif armv7-r_asm_flags = $(armv7-r_flags) $(armv7_asm_flags)
###############################################################################