ARM: mcpm: Add explicit AFLAGS to support v6/v7 multiplatform kernels

Message ID
State New
Headers show

Commit Message

Dave Martin May 2, 2013, 10:38 a.m.
The full mcpm layer is not likely to be relevant to v6 based
platforms, so a multiplatform kernel won't use that code if booted
on v6 hardware.

This patch modifies the AFLAGS for affected mcpm .S files to
specify armv7-a explicitly for that code.

Signed-off-by: Dave Martin <>
Acked-by: Arnd Bergmann <>
Acked-by: Nicolas Pitre <>
KernelVersion: devel-stable (a126f7c)

 arch/arm/common/Makefile |    2 ++
 1 file changed, 2 insertions(+)


diff --git a/arch/arm/common/Makefile b/arch/arm/common/Makefile
index 48c0ee5..53e68b1 100644
--- a/arch/arm/common/Makefile
+++ b/arch/arm/common/Makefile
@@ -12,3 +12,5 @@  obj-$(CONFIG_SHARP_SCOOP)	+= scoop.o
 obj-$(CONFIG_PCI_HOST_ITE8152)  += it8152.o
 obj-$(CONFIG_ARM_TIMER_SP804)	+= timer-sp.o
 obj-$(CONFIG_MCPM)		+= mcpm_head.o mcpm_entry.o mcpm_platsmp.o vlock.o
+AFLAGS_mcpm_head.o		:= -march=armv7-a
+AFLAGS_vlock.o			:= -march=armv7-a