diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-06-21 02:21:00 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-10-18 00:22:25 -0400 |
commit | 0a01b310fe6319d88690bd5a329c9e6a82ce7011 (patch) | |
tree | 626ad0ea5f93b2efe210cc9ce6d6bcf0deb31fd1 /arch | |
parent | 281eff5322fdb950a7dab722d15af811dda511d2 (diff) |
m68k: merge the mmu and non-mmu kernel/Makefiles
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.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/kernel/Makefile | 24 | ||||
-rw-r--r-- | arch/m68k/kernel/Makefile_mm | 17 | ||||
-rw-r--r-- | arch/m68k/kernel/Makefile_no | 10 |
3 files changed, 20 insertions, 31 deletions
diff --git a/arch/m68k/kernel/Makefile b/arch/m68k/kernel/Makefile index c482ebc9dd54..ca686708ae08 100644 --- a/arch/m68k/kernel/Makefile +++ b/arch/m68k/kernel/Makefile | |||
@@ -1,5 +1,21 @@ | |||
1 | ifdef CONFIG_MMU | 1 | # |
2 | include arch/m68k/kernel/Makefile_mm | 2 | # Makefile for the linux kernel. |
3 | else | 3 | # |
4 | include arch/m68k/kernel/Makefile_no | 4 | |
5 | extra-$(CONFIG_MMU) := head.o | ||
6 | extra-$(CONFIG_SUN3) := sun3-head.o | ||
7 | extra-y += vmlinux.lds | ||
8 | |||
9 | obj-y := entry.o m68k_ksyms.o module.o process.o ptrace.o setup.o signal.o \ | ||
10 | sys_m68k.o syscalltable.o time.o traps.o | ||
11 | |||
12 | obj-$(CONFIG_MMU) += ints.o devres.o | ||
13 | devres-$(CONFIG_MMU) = ../../../kernel/irq/devres.o | ||
14 | |||
15 | ifndef CONFIG_MMU_SUN3 | ||
16 | obj-y += dma.o | ||
5 | endif | 17 | endif |
18 | ifndef CONFIG_MMU | ||
19 | obj-y += init_task.o irq.o | ||
20 | endif | ||
21 | |||
diff --git a/arch/m68k/kernel/Makefile_mm b/arch/m68k/kernel/Makefile_mm deleted file mode 100644 index aced67804579..000000000000 --- a/arch/m68k/kernel/Makefile_mm +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | # | ||
2 | # Makefile for the linux kernel. | ||
3 | # | ||
4 | |||
5 | ifndef CONFIG_SUN3 | ||
6 | extra-y := head.o | ||
7 | else | ||
8 | extra-y := sun3-head.o | ||
9 | endif | ||
10 | extra-y += vmlinux.lds | ||
11 | |||
12 | obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o module.o \ | ||
13 | sys_m68k.o time.o setup.o m68k_ksyms.o devres.o syscalltable.o | ||
14 | |||
15 | devres-y = ../../../kernel/irq/devres.o | ||
16 | |||
17 | obj-y$(CONFIG_MMU_SUN3) += dma.o # no, it's not a typo | ||
diff --git a/arch/m68k/kernel/Makefile_no b/arch/m68k/kernel/Makefile_no deleted file mode 100644 index 37c3fc074c0a..000000000000 --- a/arch/m68k/kernel/Makefile_no +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | # | ||
2 | # Makefile for arch/m68knommu/kernel. | ||
3 | # | ||
4 | |||
5 | extra-y := vmlinux.lds | ||
6 | |||
7 | obj-y += dma.o entry.o init_task.o irq.o m68k_ksyms.o process.o ptrace.o \ | ||
8 | setup.o signal.o syscalltable.o sys_m68k.o time.o traps.o | ||
9 | |||
10 | obj-$(CONFIG_MODULES) += module.o | ||