MIPS:Netlogic:Specify architecture CFLAGS
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.
Signed-off-by Jayachandran C <[email protected]>
--- arch/mips/netlogic/Platform | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
arch/mips/netlogic/Platform +5 -0
@@ -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
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