18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Makefile for the Linux SuperH-specific parts of the memory manager.
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciobj-y			:= alignment.o cache.o init.o consistent.o mmap.o
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_cicacheops-$(CONFIG_CPU_J2)		:= cache-j2.o
98c2ecf20Sopenharmony_cicacheops-$(CONFIG_CPU_SUBTYPE_SH7619)	:= cache-sh2.o
108c2ecf20Sopenharmony_cicacheops-$(CONFIG_CPU_SH2A)		:= cache-sh2a.o
118c2ecf20Sopenharmony_cicacheops-$(CONFIG_CPU_SH3)		:= cache-sh3.o
128c2ecf20Sopenharmony_cicacheops-$(CONFIG_CPU_SH4)		:= cache-sh4.o flush-sh4.o
138c2ecf20Sopenharmony_cicacheops-$(CONFIG_SH7705_CACHE_32KB)	+= cache-sh7705.o
148c2ecf20Sopenharmony_cicacheops-$(CONFIG_CPU_SHX3)		+= cache-shx3.o
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciobj-y			+= $(cacheops-y)
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_cimmu-y			:= nommu.o extable_32.o
198c2ecf20Sopenharmony_cimmu-$(CONFIG_MMU)	:= extable_32.o fault.o ioremap.o kmap.o \
208c2ecf20Sopenharmony_ci			   pgtable.o tlbex_32.o tlbflush_32.o
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciobj-y			+= $(mmu-y)
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_cidebugfs-y			:= asids-debugfs.o
258c2ecf20Sopenharmony_ciifndef CONFIG_CACHE_OFF
268c2ecf20Sopenharmony_cidebugfs-$(CONFIG_CPU_SH4)	+= cache-debugfs.o
278c2ecf20Sopenharmony_ciendif
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciifdef CONFIG_MMU
308c2ecf20Sopenharmony_cidebugfs-$(CONFIG_CPU_SH4)	+= tlb-debugfs.o
318c2ecf20Sopenharmony_citlb-$(CONFIG_CPU_SH3)		:= tlb-sh3.o
328c2ecf20Sopenharmony_citlb-$(CONFIG_CPU_SH4)		:= tlb-sh4.o tlb-urb.o
338c2ecf20Sopenharmony_citlb-$(CONFIG_CPU_HAS_PTEAEX)	:= tlb-pteaex.o tlb-urb.o
348c2ecf20Sopenharmony_ciobj-y				+= $(tlb-y)
358c2ecf20Sopenharmony_ciendif
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciobj-$(CONFIG_DEBUG_FS)		+= $(debugfs-y)
388c2ecf20Sopenharmony_ciobj-$(CONFIG_HUGETLB_PAGE)	+= hugetlbpage.o
398c2ecf20Sopenharmony_ciobj-$(CONFIG_PMB)		+= pmb.o
408c2ecf20Sopenharmony_ciobj-$(CONFIG_NUMA)		+= numa.o
418c2ecf20Sopenharmony_ciobj-$(CONFIG_IOREMAP_FIXED)	+= ioremap_fixed.o
428c2ecf20Sopenharmony_ciobj-$(CONFIG_UNCACHED_MAPPING)	+= uncached.o
438c2ecf20Sopenharmony_ciobj-$(CONFIG_HAVE_SRAM_POOL)	+= sram.o
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ciGCOV_PROFILE_pmb.o := n
46