summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/arm/armv7/Makefile.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/arm/armv7/Makefile.inc b/src/arch/arm/armv7/Makefile.inc
index 66ddc98da5..5675a26b0a 100644
--- a/src/arch/arm/armv7/Makefile.inc
+++ b/src/arch/arm/armv7/Makefile.inc
@@ -5,7 +5,10 @@ armv7-a_flags = -march=armv7-a $(armv7_flags) -D__COREBOOT_ARM_V7_A__
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__
-armv7_asm_flags = -Wa,-mthumb -Wa,-mimplicit-it=always -Wa,-mno-warn-deprecated
+armv7_asm_flags = -Wa,-mthumb -Wa,-mimplicit-it=always
+ifeq ($(CONFIG_COMPILER_GCC),y)
+armv7_asm_flags += -Wa,-mno-warn-deprecated
+endif
armv7-r_asm_flags = $(armv7-r_flags) $(armv7_asm_flags)
###############################################################################