ARM: 8534/1: virt: fix hyp-stub build for pre-ARMv7 CPUs

ARMv6 CPUs do not have virtualisation extensions, but hyp-stub.S is
still included into the image to keep it generic. In order to use ARMv7
instructions during HYP initialisation, add -march=armv7-a flag to
hyp-stub's build.

On an ARMv6 CPU, __hyp_stub_install returns as soon as it detects that
the mode isn't HYP, so we will never reach those instructions.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Jean-Philippe Brucker and committed by
Russell King
c7edd7f9 e972c374

+3
+2
arch/arm/boot/compressed/Makefile
··· 195 $(obj)/font.c: $(FONTC) 196 $(call cmd,shipped) 197 198 $(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S 199 $(call cmd,shipped)
··· 195 $(obj)/font.c: $(FONTC) 196 $(call cmd,shipped) 197 198 + AFLAGS_hyp-stub.o := -Wa,-march=armv7-a 199 + 200 $(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S 201 $(call cmd,shipped)
+1
arch/arm/kernel/Makefile
··· 88 obj-$(CONFIG_EARLY_PRINTK) += early_printk.o 89 90 obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o 91 ifeq ($(CONFIG_ARM_PSCI),y) 92 obj-$(CONFIG_SMP) += psci_smp.o 93 endif
··· 88 obj-$(CONFIG_EARLY_PRINTK) += early_printk.o 89 90 obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o 91 + AFLAGS_hyp-stub.o :=-Wa,-march=armv7-a 92 ifeq ($(CONFIG_ARM_PSCI),y) 93 obj-$(CONFIG_SMP) += psci_smp.o 94 endif