blob: 203fee23f7d70efebe0b6c11eb1bfdb6dc3cae6c [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
16cacheflush-$(CONFIG_MN10300_CACHE_DISABLED) := cache-disabled.o
17
David Howellsb920de12008-02-08 04:19:31 -080018obj-y := \
19 init.o fault.o pgtable.o extable.o tlb-mn10300.o mmu-context.o \
David Howells62bdb282010-09-29 01:57:02 +010020 misalignment.o dma-alloc.o $(cacheflush-y)
Akira Takeuchi965ea4b2010-10-27 17:28:51 +010021
22obj-$(CONFIG_SMP) += tlb-smp.o