rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Makefile for the MN10300-specific memory management code |
| 4 | # |
| 5 | |
| 6 | cache-smp-wback-$(CONFIG_MN10300_CACHE_WBACK) := cache-smp-flush.o |
| 7 | |
| 8 | cacheflush-y := cache.o |
| 9 | cacheflush-$(CONFIG_SMP) += cache-smp.o cache-smp-inv.o $(cache-smp-wback-y) |
| 10 | cacheflush-$(CONFIG_MN10300_CACHE_INV_ICACHE) += cache-inv-icache.o |
| 11 | cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_ICACHE) += cache-flush-icache.o |
| 12 | cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_TAG) += cache-inv-by-tag.o |
| 13 | cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_REG) += cache-inv-by-reg.o |
| 14 | cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_TAG) += cache-flush-by-tag.o |
| 15 | cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_REG) += cache-flush-by-reg.o |
| 16 | |
| 17 | cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_FLUSH_BY_TAG) += \ |
| 18 | cache-dbg-flush-by-tag.o cache-dbg-inv-by-tag.o |
| 19 | cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_FLUSH_BY_REG) += \ |
| 20 | cache-dbg-flush-by-reg.o |
| 21 | cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_INV_BY_TAG) += \ |
| 22 | cache-dbg-inv-by-tag.o cache-dbg-inv.o |
| 23 | cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_INV_BY_REG) += \ |
| 24 | cache-dbg-inv-by-reg.o cache-dbg-inv.o |
| 25 | |
| 26 | cacheflush-$(CONFIG_MN10300_CACHE_DISABLED) := cache-disabled.o |
| 27 | |
| 28 | obj-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 | |
| 32 | obj-$(CONFIG_SMP) += tlb-smp.o |