[coreboot-gerrit] Change in coreboot[master]: armv7/Makefile.inc: Make cflags compiler agnostic

Damien Zammit (Code Review) gerrit at coreboot.org
Sun Sep 3 02:41:50 CEST 2017


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 at 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)
 
 ###############################################################################

-- 
To view, visit https://review.coreboot.org/21357
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I00b7ab5ad25349382bef3cc5001f3a3297f11ca0
Gerrit-Change-Number: 21357
Gerrit-PatchSet: 1
Gerrit-Owner: Damien Zammit <damien at zamaudio.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170903/e7f0c8cb/attachment.html>


More information about the coreboot-gerrit mailing list