Skip to contentSkip to conversation

MIPS:Netlogic:Specify architecture CFLAGS

PATCH In review Jayachandran C 2 participants 2 messages Jun 21, 2011 – Jun 22, 2011 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---
 arch/mips/netlogic/Platform |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/mips/netlogic/Platform +5 -0
index f87c164..b648b48 100644
@@ -5,6 +5,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
 #
 core-$(CONFIG_NLM_XLR)	      += arch/mips/netlogic/xlr/
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 3 lines · Jayachandran C

Use -march=xlr if available, otherwise fallback to mips64. This allows us to support compilation with MIPS toolchains which are not customized for XLR.

And it also works around the gas assertion error so applied. Otherwise I'd have only queued this for the next release after 3.0(.0).

Ralf