Skip to content

Commit

Permalink
m68k: merge the mmu and non-mmu kernel/Makefiles
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Oct 18, 2011
1 parent 281eff5 commit 0a01b31
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 31 deletions.
24 changes: 20 additions & 4 deletions arch/m68k/kernel/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
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 module.o process.o ptrace.o setup.o signal.o \
sys_m68k.o syscalltable.o time.o traps.o

obj-$(CONFIG_MMU) += ints.o devres.o
devres-$(CONFIG_MMU) = ../../../kernel/irq/devres.o

ifndef CONFIG_MMU_SUN3
obj-y += dma.o
endif
ifndef CONFIG_MMU
obj-y += init_task.o irq.o
endif

17 changes: 0 additions & 17 deletions arch/m68k/kernel/Makefile_mm

This file was deleted.

10 changes: 0 additions & 10 deletions arch/m68k/kernel/Makefile_no

This file was deleted.

0 comments on commit 0a01b31

Please sign in to comment.