Skip to contentSkip to conversation

m68k: merge the mmu and non-mmu kernel/Makefiles

PATCH New [email protected] 1 participant 1 message Jun 23, 2011 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: merge the mmu and non-mmu kernel/Makefiles

From: Greg Ungerer <[email protected]>

The few differences between the mmu and non-mmu kernel/Makefiles can easily be handled inside of a single Makefile. Merge the 2 back into a single Makefile.

---
 arch/m68k/kernel/Makefile    |   23 +++++++++++++++++++----
 arch/m68k/kernel/Makefile_mm |   17 -----------------
 arch/m68k/kernel/Makefile_no |   10 ----------
 3 files changed, 19 insertions(+), 31 deletions(-)
 delete mode 100644 arch/m68k/kernel/Makefile_mm
 delete mode 100644 arch/m68k/kernel/Makefile_no
arch/m68k/kernel/Makefile +19 -4
index c482ebc..5e1bf94 100644
@@ -1,5 +1,20 @@
-ifdef CONFIG_MMU
-include arch/m68k/kernel/Makefile_mm
-else
-include arch/m68k/kernel/Makefile_no
+#
+# Makefile for the linux kernel.
+#
+
+extra-$(CONFIG_MMU)	:= head.o
+extra-$(CONFIG_SUN3)	:= sun3-head.o
+extra-y			+= vmlinux.lds
+
+obj-y	:= entry.o m68k_ksyms.o process.o ptrace.o setup.o signal.o \
+	   sys_m68k.o syscalltable.o time.o traps.o
+
+obj-y$(CONFIG_MMU_SUN3) += dma.o	# no, it's not a typo
+obj-$(CONFIG_MMU)	+= ints.o module.o devres.o
+devres-$(CONFIG_MMU)	= ../../../kernel/irq/devres.o
+
+ifndef CONFIG_MMU
+obj-y			+= init_task.o irq.o
+obj-$(CONFIG_MODULES)   += module.o
 endif
+
arch/m68k/kernel/Makefile_mm deleted +0 -17
deleted file mode 100644
index aced678..0000000
@@ -1,17 +0,0 @@
-#
-# Makefile for the linux kernel.
-#
-
-ifndef CONFIG_SUN3
-  extra-y := head.o
-else
-  extra-y := sun3-head.o
-endif
-extra-y	+= vmlinux.lds
-
-obj-y	:= entry.o process.o traps.o ints.o signal.o ptrace.o module.o \
-	   sys_m68k.o time.o setup.o m68k_ksyms.o devres.o syscalltable.o
-
-devres-y = ../../../kernel/irq/devres.o
-
-obj-y$(CONFIG_MMU_SUN3) += dma.o	# no, it's not a typo
arch/m68k/kernel/Makefile_no deleted +0 -10
deleted file mode 100644
index 37c3fc0..0000000
@@ -1,10 +0,0 @@
-#
-# Makefile for arch/m68knommu/kernel.
-#
-
-extra-y := vmlinux.lds
-
-obj-y += dma.o entry.o init_task.o irq.o m68k_ksyms.o process.o ptrace.o \
-	 setup.o signal.o syscalltable.o sys_m68k.o time.o traps.o
-
-obj-$(CONFIG_MODULES)	+= module.o
Signature · 1 line
1.7.0.4