diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-10-18 02:26:11 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-12-29 19:20:39 -0500 |
commit | 0e6782c880e921106de645554939a5a714d8c865 (patch) | |
tree | 726fd93f582bdecbeaea59be09ca2a377b951fc1 /arch | |
parent | 066bf87b5c1b87f2eba7880b125f88e4f67e1c16 (diff) |
m68k: compile appropriate mm arch files for ColdFire MMU support
Create a config symbol to enable when using a ColdFire MMU. We then
use that to only compile the necessary arch mm files.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Matt Waddel <mwaddel@yahoo.com>
Acked-by: Kurt Mahan <kmahan@xmission.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/Kconfig | 5 | ||||
-rw-r--r-- | arch/m68k/mm/Makefile | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index 5f860cf67afc..330eb88108e7 100644 --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig | |||
@@ -88,9 +88,12 @@ config MMU | |||
88 | config MMU_MOTOROLA | 88 | config MMU_MOTOROLA |
89 | bool | 89 | bool |
90 | 90 | ||
91 | config MMU_COLDFIRE | ||
92 | bool | ||
93 | |||
91 | config MMU_SUN3 | 94 | config MMU_SUN3 |
92 | bool | 95 | bool |
93 | depends on MMU && !MMU_MOTOROLA | 96 | depends on MMU && !MMU_MOTOROLA && !MMU_COLDFIRE |
94 | 97 | ||
95 | menu "Platform setup" | 98 | menu "Platform setup" |
96 | 99 | ||
diff --git a/arch/m68k/mm/Makefile b/arch/m68k/mm/Makefile index 09cadf1058d5..cfbf3205724a 100644 --- a/arch/m68k/mm/Makefile +++ b/arch/m68k/mm/Makefile | |||
@@ -4,6 +4,8 @@ | |||
4 | 4 | ||
5 | obj-y := init.o | 5 | obj-y := init.o |
6 | 6 | ||
7 | obj-$(CONFIG_MMU) += cache.o fault.o hwtest.o | 7 | obj-$(CONFIG_MMU) += cache.o fault.o |
8 | obj-$(CONFIG_MMU_MOTOROLA) += kmap.o memory.o motorola.o | 8 | obj-$(CONFIG_MMU_MOTOROLA) += kmap.o memory.o motorola.o hwtest.o |
9 | obj-$(CONFIG_MMU_SUN3) += sun3kmap.o sun3mmu.o | 9 | obj-$(CONFIG_MMU_SUN3) += sun3kmap.o sun3mmu.o hwtest.o |
10 | obj-$(CONFIG_MMU_COLDFIRE) += kmap.o memory.o mcfmmu.o | ||
11 | |||