Skip to contentSkip to conversation

arm: mvebu: Fix compile for multiplatform when ARMv6 is selected

PATCH Applied Tony Lindgren 3 participants 3 messages Jan 11, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Some systems compile in both ARMv6 and ARMv7 into multiplatform configurations. This means the default compiler flags are for ARMv6, and we will get:

arch/arm/mach-mvebu/coherency_ll.S: Assembler messages:
arch/arm/mach-mvebu/coherency_ll.S:45: Error: selected processor does not support `dsb'

Fix this by specifying ARMv7 flags for coherency_ll.o.

arch/arm/mach-mvebu/Makefile +2 -0
@@ -1,6 +1,8 @@
 ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
 	-I$(srctree)/arch/arm/plat-orion/include
 
+AFLAGS_coherency_ll.o		:= -Wa,-march=armv7-a
+
 obj-y += system-controller.o
 obj-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-xp.o irq-armada-370-xp.o addr-map.o coherency.o coherency_ll.o pmsu.o
 obj-$(CONFIG_SMP)                += platsmp.o headsmp.o
#1 lore raw
Quoted 10 lines · Tony Lindgren

Some systems compile in both ARMv6 and ARMv7 into multiplatform configurations. This means the default compiler flags are for ARMv6, and we will get:

arch/arm/mach-mvebu/coherency_ll.S: Assembler messages:
arch/arm/mach-mvebu/coherency_ll.S:45: Error: selected processor does not support `dsb'

Fix this by specifying ARMv7 flags for coherency_ll.o.

Applied to fixes, I don't expect Jason or others to complain about this so I took the liberty. :)

-Olof

#2 lore raw
Quoted 8 lines · Olof Johansson
Quoted 7 lines · Tony Lindgren

Some systems compile in both ARMv6 and ARMv7 into multiplatform configurations. This means the default compiler flags are for ARMv6, and we will get:

arch/arm/mach-mvebu/coherency_ll.S: Assembler messages:
arch/arm/mach-mvebu/coherency_ll.S:45: Error: selected processor does not support `dsb'

Quoted 6 lines
Quoted 3 lines

Fix this by specifying ARMv7 flags for coherency_ll.o.

Applied to fixes, I don't expect Jason or others to complain about this so I took the liberty. :)

Complaint-withheld-by Jason Cooper <[email protected]>

;-)

Jason.