From 39ad56805a3bcf259d7549e73a3c9d557c2efd7b Mon Sep 17 00:00:00 2001 From: Jayachandran C Date: Wed, 22 Jun 2011 01:36:33 +0530 Subject: [PATCH] MIPS: Netlogic: Specify architecture CFLAGS Use -march=xlr if available, otherwise fallback to mips64. This allows us to support compilation with MIPS toolchains which are not customized for XLR. [ralf@linux-mips.org: And more importantly it works around a gas bug in binutils 2.21 which otherwise may result in an assertion failure building arch/mips/kernel/genex.S. See http://sourceware.org/bugzilla/show_bug.cgi?id=12915 for details.] Signed-off-by: Jayachandran C To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2534/ Signed-off-by: Ralf Baechle --- arch/mips/netlogic/Platform | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/netlogic/Platform b/arch/mips/netlogic/Platform index f87c1640abb..b648b487fd6 100644 --- a/arch/mips/netlogic/Platform +++ b/arch/mips/netlogic/Platform @@ -4,6 +4,11 @@ cflags-$(CONFIG_NLM_COMMON) += -I$(srctree)/arch/mips/include/asm/mach-netlogic cflags-$(CONFIG_NLM_COMMON) += -I$(srctree)/arch/mips/include/asm/netlogic +# +# use mips64 if xlr is not available +# +cflags-$(CONFIG_NLM_XLR) += $(call cc-option,-march=xlr,-march=mips64) + # # NETLOGIC XLR/XLS SoC, Simulator and boards # -- 2.39.5