From: Russell King Date: Mon, 8 Nov 2010 10:11:19 +0000 (+0000) Subject: ARM: always build swp_emulate as ARMv7 X-Git-Tag: accepted/tizen/common/20141203.182822~9283^2~2^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=283a1b92e25fe3a62c766a042f96dad2eefa7d17;p=platform%2Fkernel%2Flinux-arm64.git ARM: always build swp_emulate as ARMv7 swp_emulate is only used on ARMv7+, and includes ARMv7+ assembly instructions. Allow the assembler to accept ARMv7 instructions, but leave the compiler's code generation options alone. Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index 119a6bb..4036a59 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile @@ -43,6 +43,7 @@ obj-$(CONFIG_ARM_UNWIND) += unwind.o obj-$(CONFIG_HAVE_TCM) += tcm.o obj-$(CONFIG_CRASH_DUMP) += crash_dump.o obj-$(CONFIG_SWP_EMULATE) += swp_emulate.o +CFLAGS_swp_emulate.o := -Wa,-march=armv7-a obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o