xref: /openbmc/linux/arch/sh/mm/Makefile (revision ccbb5239)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21b3edd97SPaul Mundt#
31b3edd97SPaul Mundt# Makefile for the Linux SuperH-specific parts of the memory manager.
41b3edd97SPaul Mundt#
51b3edd97SPaul Mundt
6a99eae54SPaul Mundtobj-y			:= alignment.o cache.o init.o consistent.o mmap.o
71b3edd97SPaul Mundt
85a846abaSRich Felkercacheops-$(CONFIG_CPU_J2)		:= cache-j2.o
95a846abaSRich Felkercacheops-$(CONFIG_CPU_SUBTYPE_SH7619)	:= cache-sh2.o
101b3edd97SPaul Mundtcacheops-$(CONFIG_CPU_SH2A)		:= cache-sh2a.o
111b3edd97SPaul Mundtcacheops-$(CONFIG_CPU_SH3)		:= cache-sh3.o
121b3edd97SPaul Mundtcacheops-$(CONFIG_CPU_SH4)		:= cache-sh4.o flush-sh4.o
131b3edd97SPaul Mundtcacheops-$(CONFIG_SH7705_CACHE_32KB)	+= cache-sh7705.o
143cf6fa1eSPaul Mundtcacheops-$(CONFIG_CPU_SHX3)		+= cache-shx3.o
151b3edd97SPaul Mundt
161b3edd97SPaul Mundtobj-y			+= $(cacheops-y)
171b3edd97SPaul Mundt
181b3edd97SPaul Mundtmmu-y			:= nommu.o extable_32.o
1937744feeSArnd Bergmannmmu-$(CONFIG_MMU)	:= extable_32.o fault.o ioremap.o kmap.o \
2037744feeSArnd Bergmann			   pgtable.o tlbex_32.o tlbflush_32.o
211b3edd97SPaul Mundt
221b3edd97SPaul Mundtobj-y			+= $(mmu-y)
231b3edd97SPaul Mundt
246ae66502SMatt Flemingdebugfs-y			:= asids-debugfs.o
256ae66502SMatt Flemingifndef CONFIG_CACHE_OFF
266ae66502SMatt Flemingdebugfs-$(CONFIG_CPU_SH4)	+= cache-debugfs.o
271b3edd97SPaul Mundtendif
281b3edd97SPaul Mundt
291b3edd97SPaul Mundtifdef CONFIG_MMU
306ae66502SMatt Flemingdebugfs-$(CONFIG_CPU_SH4)	+= tlb-debugfs.o
311b3edd97SPaul Mundttlb-$(CONFIG_CPU_SH3)		:= tlb-sh3.o
32bb29c677SPaul Mundttlb-$(CONFIG_CPU_SH4)		:= tlb-sh4.o tlb-urb.o
33bb29c677SPaul Mundttlb-$(CONFIG_CPU_HAS_PTEAEX)	:= tlb-pteaex.o tlb-urb.o
341b3edd97SPaul Mundtobj-y				+= $(tlb-y)
351b3edd97SPaul Mundtendif
361b3edd97SPaul Mundt
376ae66502SMatt Flemingobj-$(CONFIG_DEBUG_FS)		+= $(debugfs-y)
381b3edd97SPaul Mundtobj-$(CONFIG_HUGETLB_PAGE)	+= hugetlbpage.o
39a0ab3668SPaul Mundtobj-$(CONFIG_PMB)		+= pmb.o
401b3edd97SPaul Mundtobj-$(CONFIG_NUMA)		+= numa.o
414d35b93aSMatt Flemingobj-$(CONFIG_IOREMAP_FIXED)	+= ioremap_fixed.o
429edef286SPaul Mundtobj-$(CONFIG_UNCACHED_MAPPING)	+= uncached.o
43c993487eSPaul Mundtobj-$(CONFIG_HAVE_SRAM_POOL)	+= sram.o
441b3edd97SPaul Mundt
45d4f7e513SChris SmithGCOV_PROFILE_pmb.o := n
46