From: Quanyang Wang <[email protected]> Removing "-march=armv6k" from KBUILD_AFLAGS will result that there is no "-march=xxx" compile option in KBUILD_AFLAGS when the kernel option CONFIG_CPU_32v6K is enabled. Let's keep this compile option and no need to add AFLAGS_headsmp.o since the ARMv6K extensions can handle headsmp.S.
Signed-off-by: Quanyang Wang <[email protected]> --- arch/arm/mach-zynq/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-zynq/Makefile b/arch/arm/mach-zynq/Makefile index 9b3e6a4140a2..3ac7a88e5d60 100644 --- a/arch/arm/mach-zynq/Makefile +++ b/arch/arm/mach-zynq/Makefile @@ -7,8 +7,5 @@ obj-y := common.o efuse.o slcr.o zynq_ocm.o pm.o obj-$(CONFIG_SMP) += headsmp.o platsmp.o -ORIG_AFLAGS := $(KBUILD_AFLAGS) -KBUILD_AFLAGS = $(subst -march=armv6k,,$(ORIG_AFLAGS)) -obj-$(CONFIG_SUSPEND) += suspend.o -AFLAGS_suspend.o +=-Wa,-march=armv7-a -AFLAGS_headsmp.o +=-Wa,-march=armv7-a +obj-$(CONFIG_SUSPEND) += suspend.o +AFLAGS_suspend.o +=-Wa,-march=armv7-a -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9833): https://lists.yoctoproject.org/g/linux-yocto/message/9833 Mute This Topic: https://lists.yoctoproject.org/mt/82450329/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
