patch-2.3.48 linux/arch/mips/mm/Makefile

Next file: linux/arch/mips/mm/andes.c
Previous file: linux/arch/mips/lib/watch.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/arch/mips/mm/Makefile linux/arch/mips/mm/Makefile
@@ -8,10 +8,29 @@
 # Note 2! The CFLAGS definition is now in the main makefile...
 
 O_TARGET := mm.o
-O_OBJS	 := extable.o init.o fault.o r4xx0.o r2300.o r6000.o tfp.o \
-            andes.o loadmmu.o
+O_OBJS	 := extable.o init.o fault.o loadmmu.o
 
-ifdef CONFIG_SGI
+ifdef CONFIG_CPU_R3000
+O_OBJS   += r2300.o
+endif
+
+ifdef CONFIG_CPU_R4300
+O_OBJS   += r4xx0.o
+endif
+
+ifdef CONFIG_CPU_R4X00
+O_OBJS   += r4xx0.o
+endif
+
+ifdef CONFIG_CPU_R5000
+O_OBJS   += r4xx0.o
+endif
+
+ifdef CONFIG_CPU_NEVADA
+O_OBJS   += r4xx0.o
+endif
+
+ifdef CONFIG_SGI_IP22
 O_OBJS   += umap.o
 endif
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)