blob: 11f38466ac28e17a7e3c2518a5a9679a1ad35d3b [file] [log] [blame]
David Howellsb920de12008-02-08 04:19:31 -08001#
2# Makefile for the MN10300-specific memory management code
3#
4
Akira Takeuchi8be06282010-10-27 17:28:47 +01005cache-smp-wback-$(CONFIG_MN10300_CACHE_WBACK) := cache-smp-flush.o
6
David Howells518d4bb2010-10-27 17:28:43 +01007cacheflush-y := cache.o
Akira Takeuchi8be06282010-10-27 17:28:47 +01008cacheflush-$(CONFIG_SMP) += cache-smp.o cache-smp-inv.o $(cache-smp-wback-y)
David Howellsb4784912010-10-27 17:28:46 +01009cacheflush-$(CONFIG_MN10300_CACHE_INV_ICACHE) += cache-inv-icache.o
10cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_ICACHE) += cache-flush-icache.o
David Howells518d4bb2010-10-27 17:28:43 +010011cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_TAG) += cache-inv-by-tag.o
Akira Takeuchi9731d232010-10-27 17:28:45 +010012cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_REG) += cache-inv-by-reg.o
David Howells518d4bb2010-10-27 17:28:43 +010013cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_TAG) += cache-flush-by-tag.o
Akira Takeuchi9731d232010-10-27 17:28:45 +010014cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_REG) += cache-flush-by-reg.o
David Howells62bdb282010-09-29 01:57:02 +010015
David Howells7f386ac2011-03-18 16:54:30 +000016cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_FLUSH_BY_TAG) += \
17 cache-dbg-flush-by-tag.o cache-dbg-inv-by-tag.o
18cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_FLUSH_BY_REG) += \
19 cache-dbg-flush-by-reg.o
20cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_INV_BY_TAG) += \
21 cache-dbg-inv-by-tag.o cache-dbg-inv.o
22cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_INV_BY_REG) += \
23 cache-dbg-inv-by-reg.o cache-dbg-inv.o
24
David Howells62bdb282010-09-29 01:57:02 +010025cacheflush-$(CONFIG_MN10300_CACHE_DISABLED) := cache-disabled.o
26
David Howellsb920de12008-02-08 04:19:31 -080027obj-y := \
28 init.o fault.o pgtable.o extable.o tlb-mn10300.o mmu-context.o \
David Howells62bdb282010-09-29 01:57:02 +010029 misalignment.o dma-alloc.o $(cacheflush-y)
Akira Takeuchi965ea4b2010-10-27 17:28:51 +010030
31obj-$(CONFIG_SMP) += tlb-smp.o