[PATCH 1/3] ARM: add AFLAGS for secure monitor files

Lucas Stach l.stach at pengutronix.de
Mon Mar 20 06:07:06 PDT 2017


The instructions used in those files are only supported on ARMv7.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 arch/arm/cpu/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/cpu/Makefile b/arch/arm/cpu/Makefile
index 13b4f9590d21..13fe12c31f6f 100644
--- a/arch/arm/cpu/Makefile
+++ b/arch/arm/cpu/Makefile
@@ -36,7 +36,9 @@ endif
 
 obj-$(CONFIG_ARM_PSCI) += psci.o
 obj-$(CONFIG_ARM_SECURE_MONITOR) += smccc-call.o
+AFLAGS_smccc-call.o	:=-Wa,-march=armv7-a
 obj-$(CONFIG_ARM_SECURE_MONITOR) += sm.o sm_as.o
+AFLAGS_sm_as.o		:=-Wa,-march=armv7-a
 
 obj-$(CONFIG_CPU_32v4T) += cache-armv4.o
 pbl-$(CONFIG_CPU_32v4T) += cache-armv4.o
-- 
2.11.0




More information about the barebox mailing list