]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: tango: pass ARM arch level for smc.S
authorArnd Bergmann <arnd@arndb.de>
Tue, 29 Dec 2015 12:43:35 +0000 (13:43 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 31 Dec 2015 16:48:32 +0000 (17:48 +0100)
allmodconfig is broken by the addition of the -mcpu=cortex-a9
flag for smc.S:

arch/arm/mach-tango/smc.S:1:0: warning: switch -mcpu=cortex-a9 conflicts with -march=armv6k switch

This sets the flag in the same way that all other platforms
do, to fix the compile error.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-tango/Makefile

index 0d7e2b5976e30a8933804e60f3cba30a947c5830..99422ea743fd19d773fcb3095dd31faad12ad6d2 100644 (file)
@@ -1,2 +1,3 @@
-asflags-y += -mcpu=cortex-a9
+plus_sec := $(call as-instr,.arch_extension sec,+sec)
+AFLAGS_smc.o           :=-Wa,-march=armv7-a$(plus_sec)
 obj-y += setup.o smc.o