blob: 048ba6f67f9af0879fd2eb1fefdada67c838fe5e [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the MN10300-specific memory management code
4#
5
6cache-smp-wback-$(CONFIG_MN10300_CACHE_WBACK) := cache-smp-flush.o
7
8cacheflush-y := cache.o
9cacheflush-$(CONFIG_SMP) += cache-smp.o cache-smp-inv.o $(cache-smp-wback-y)
10cacheflush-$(CONFIG_MN10300_CACHE_INV_ICACHE) += cache-inv-icache.o
11cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_ICACHE) += cache-flush-icache.o
12cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_TAG) += cache-inv-by-tag.o
13cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_REG) += cache-inv-by-reg.o
14cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_TAG) += cache-flush-by-tag.o
15cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_REG) += cache-flush-by-reg.o
16
17cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_FLUSH_BY_TAG) += \
18 cache-dbg-flush-by-tag.o cache-dbg-inv-by-tag.o
19cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_FLUSH_BY_REG) += \
20 cache-dbg-flush-by-reg.o
21cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_INV_BY_TAG) += \
22 cache-dbg-inv-by-tag.o cache-dbg-inv.o
23cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_INV_BY_REG) += \
24 cache-dbg-inv-by-reg.o cache-dbg-inv.o
25
26cacheflush-$(CONFIG_MN10300_CACHE_DISABLED) := cache-disabled.o
27
28obj-y := \
29 init.o fault.o pgtable.o extable.o tlb-mn10300.o mmu-context.o \
30 misalignment.o dma-alloc.o $(cacheflush-y)
31
32obj-$(CONFIG_SMP) += tlb-smp.o