From: Steven J. Hill Date: Thu, 24 Apr 2014 17:03:00 +0000 (-0500) Subject: MIPS: Fix MSA toolchain support detection. X-Git-Tag: firefly_0821_release~176^2~3807^2^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1d61ff6a1aefa59e9c8fd09da1c03735c60edd2b;p=firefly-linux-kernel-4.4.55.git MIPS: Fix MSA toolchain support detection. The '-mmsa' option is not supported by all current compilers. Change the detection to instead pass the option directly to the assembler. Signed-off-by: Steven J. Hill Reviewed-by: Paul Burton Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/6835/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 60a359cfa328..78bab83db948 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -120,7 +120,7 @@ cflags-$(CONFIG_SB1XXX_CORELIS) += $(call cc-option,-mno-sched-prolog) \ -fno-omit-frame-pointer ifeq ($(CONFIG_CPU_HAS_MSA),y) -toolchain-msa := $(call cc-option-yn,-mhard-float -mfp64 -mmsa) +toolchain-msa := $(call cc-option-yn,-mhard-float -mfp64 -Wa$(comma)-mmsa) cflags-$(toolchain-msa) += -DTOOLCHAIN_SUPPORTS_MSA endif