]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ARM: shmobile: always build rcar setup for armv7
authorArnd Bergmann <arnd@arndb.de>
Tue, 11 Nov 2014 15:36:50 +0000 (16:36 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 12 Nov 2014 09:14:42 +0000 (18:14 +0900)
In a combined ARMv6/v7 kernel, the setup-rcar-gen2.c cannot
currently be compiled correctly because it uses the isb
instruction that is not available on ARMv6. Adding the
-march=armv7-a flag lets the compiler know that it is safe
to build this file for ARMv7.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/Makefile

index e20f2786ec72a23056e306c4ad8df1e560579288..71e68ca568867ad956aa5834d06b6251889381f6 100644 (file)
@@ -36,6 +36,7 @@ cpu-y                         := platsmp.o headsmp.o
 
 # Shared SoC family objects
 obj-$(CONFIG_ARCH_RCAR_GEN2)   += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y)
+CFLAGS_setup-rcar-gen2.o       += -march=armv7-a
 
 # SMP objects
 smp-y                          := $(cpu-y)