Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 1/2] MIPS:Netlogic:Specify architecture CFLAGS
@ 2011-06-21 20:06 Jayachandran C
  2011-06-22  7:49 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Jayachandran C @ 2011-06-21 20:06 UTC (permalink / raw)
  To: linux-mips, ralf

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

Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
---
 arch/mips/netlogic/Platform |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/mips/netlogic/Platform b/arch/mips/netlogic/Platform
index f87c164..b648b48 100644
--- a/arch/mips/netlogic/Platform
+++ b/arch/mips/netlogic/Platform
@@ -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/
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] MIPS:Netlogic:Specify architecture CFLAGS
  2011-06-21 20:06 [PATCH 1/2] MIPS:Netlogic:Specify architecture CFLAGS Jayachandran C
@ 2011-06-22  7:49 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2011-06-22  7:49 UTC (permalink / raw)
  To: Jayachandran C; +Cc: linux-mips

On Wed, Jun 22, 2011 at 01:36:33AM +0530, Jayachandran C wrote:

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-22  7:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 20:06 [PATCH 1/2] MIPS:Netlogic:Specify architecture CFLAGS Jayachandran C
2011-06-22  7:49 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox