blob: f69ddc70b146583b9d39eded5a76051ed87cd9ee [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Paul Mundt1b3edd92009-08-16 03:49:21 +09002#
3# Makefile for the Linux SuperH-specific parts of the memory manager.
4#
5
Paul Mundta99eae52010-01-12 16:12:25 +09006obj-y := alignment.o cache.o init.o consistent.o mmap.o
Paul Mundt1b3edd92009-08-16 03:49:21 +09007
Rich Felker5a846ab2016-03-17 23:09:37 +00008cacheops-$(CONFIG_CPU_J2) := cache-j2.o
9cacheops-$(CONFIG_CPU_SUBTYPE_SH7619) := cache-sh2.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090010cacheops-$(CONFIG_CPU_SH2A) := cache-sh2a.o
11cacheops-$(CONFIG_CPU_SH3) := cache-sh3.o
12cacheops-$(CONFIG_CPU_SH4) := cache-sh4.o flush-sh4.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090013cacheops-$(CONFIG_SH7705_CACHE_32KB) += cache-sh7705.o
Paul Mundt3cf6fa12010-04-19 17:27:17 +090014cacheops-$(CONFIG_CPU_SHX3) += cache-shx3.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090015
16obj-y += $(cacheops-y)
17
18mmu-y := nommu.o extable_32.o
Arnd Bergmann37744fe2020-04-20 11:37:12 +020019mmu-$(CONFIG_MMU) := extable_32.o fault.o ioremap.o kmap.o \
20 pgtable.o tlbex_32.o tlbflush_32.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090021
22obj-y += $(mmu-y)
Paul Mundt1b3edd92009-08-16 03:49:21 +090023
Matt Fleming6ae66502010-03-29 15:24:54 +090024debugfs-y := asids-debugfs.o
25ifndef CONFIG_CACHE_OFF
26debugfs-$(CONFIG_CPU_SH4) += cache-debugfs.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090027endif
28
29ifdef CONFIG_MMU
Matt Fleming6ae66502010-03-29 15:24:54 +090030debugfs-$(CONFIG_CPU_SH4) += tlb-debugfs.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090031tlb-$(CONFIG_CPU_SH3) := tlb-sh3.o
Paul Mundtbb29c672010-01-19 15:20:35 +090032tlb-$(CONFIG_CPU_SH4) := tlb-sh4.o tlb-urb.o
Paul Mundtbb29c672010-01-19 15:20:35 +090033tlb-$(CONFIG_CPU_HAS_PTEAEX) := tlb-pteaex.o tlb-urb.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090034obj-y += $(tlb-y)
35endif
36
Matt Fleming6ae66502010-03-29 15:24:54 +090037obj-$(CONFIG_DEBUG_FS) += $(debugfs-y)
Paul Mundt1b3edd92009-08-16 03:49:21 +090038obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
Paul Mundta0ab3662010-01-13 18:31:48 +090039obj-$(CONFIG_PMB) += pmb.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090040obj-$(CONFIG_NUMA) += numa.o
Matt Fleming4d35b932009-11-05 07:54:17 +000041obj-$(CONFIG_IOREMAP_FIXED) += ioremap_fixed.o
Paul Mundt9edef282010-02-17 16:28:00 +090042obj-$(CONFIG_UNCACHED_MAPPING) += uncached.o
Paul Mundtc9934872010-10-15 02:09:00 +090043obj-$(CONFIG_HAVE_SRAM_POOL) += sram.o
Paul Mundt1b3edd92009-08-16 03:49:21 +090044
Chris Smithd4f7e512010-11-12 16:26:54 +010045GCOV_PROFILE_pmb.o := n