patch-2.1.73 linux/arch/mips/Makefile

Next file: linux/arch/mips/boot/Makefile
Previous file: linux/arch/mips/.gdbinit
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.72/linux/arch/mips/Makefile linux/arch/mips/Makefile
@@ -13,21 +13,21 @@
 # Copyright (C) 1994, 1995, 1996 by Ralf Baechle
 # DECStation modifications by Paul M. Antoine, 1996
 #
-# $Id: Makefile,v 1.8 1997/08/08 18:11:35 miguel Exp $
+# $Id: Makefile,v 1.9 1997/09/19 08:34:54 ralf Exp $
 #
 
 #
 # Select the object file format to substitute into the linker script.
 #
 ifdef CONFIG_CPU_LITTLE_ENDIAN
-CROSS_COMPILE	= mipsel-linux-
+tool-prefix	= mipsel-linux-
 ifdef CONFIG_MIPS_ECOFF
 oformat		= ecoff-littlemips
 else
 oformat		= elf32-littlemips
 endif
 else
-CROSS_COMPILE	= mips-linux-
+tool-prefix	= mips-linux-
 ifdef CONFIG_MIPS_ECOFF
 oformat		= ecoff-bigmips
 else
@@ -35,6 +35,10 @@
 endif
 endif
 
+ifdef CONFIG_CROSSCOMPILE
+CROSS_COMPILE  = $(tool-prefix)
+endif
+
 LINKFLAGS	= -static -N
 MODFLAGS	+= -mlong-calls
 
@@ -77,6 +81,9 @@
 endif
 ifdef CONFIG_CPU_R5000
 CFLAGS		:= $(CFLAGS) -mcpu=r8000 -mips2
+endif
+ifdef CONFIG_CPU_NEVADA
+CFLAGS		:= $(CFLAGS) -mcpu=r8000 -mips2 -mmad
 endif
 ifdef CONFIG_CPU_R8000
 CFLAGS		:= $(CFLAGS) -mcpu=r8000 -mips2

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov