blob: 68cb1e840b5e97de49b8e8ea6f560732f795e211 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Paul Mackerras14cf11a2005-09-26 16:04:21 +10002#
3# Makefile for the linux ppc-specific parts of the memory manager.
4#
5
Anton Blanchard1fbe9cf2012-11-26 17:41:08 +00006ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
Stephen Rothwell3a5f8c52005-10-11 19:40:20 +10007
Aneesh Kumar K.Vb30e7592014-11-05 21:57:41 +05308obj-y := fault.o mem.o pgtable.o mmap.o \
Christophe Leroy9b081e12016-12-07 08:47:24 +01009 init_$(BITS).o pgtable_$(BITS).o \
Nathan Fontenot6c6ea532017-12-01 10:47:08 -060010 init-common.o mmu_context.o drmem.o
Benjamin Herrenschmidt2a4aca112008-12-18 19:13:42 +000011obj-$(CONFIG_PPC_MMU_NOHASH) += mmu_context_nohash.o tlb_nohash.o \
12 tlb_nohash_low.o
Michael Ellerman68201fb2016-08-11 16:03:14 +100013obj-$(CONFIG_PPC_BOOK3E) += tlb_low_$(BITS)e.o
Aneesh Kumar K.Veee24b52016-04-29 23:25:44 +100014obj-$(CONFIG_PPC_BOOK3E_64) += pgtable-book3e.o
Christophe Leroy17312f22019-03-29 10:00:01 +000015obj-$(CONFIG_PPC_BOOK3S_32) += book3s32/
Christophe Leroy47d99942019-03-29 10:00:00 +000016obj-$(CONFIG_PPC_BOOK3S_64) += book3s64/
17obj-$(CONFIG_PPC_BOOK3S_64) += pgtable-frag.o
Christophe Leroy32ea4c12018-11-29 14:07:01 +000018obj-$(CONFIG_PPC32) += pgtable-frag.o
Josh Boyer15f65272007-08-20 07:27:07 -050019obj-$(CONFIG_40x) += 40x_mmu.o
Paul Mackerras14cf11a2005-09-26 16:04:21 +100020obj-$(CONFIG_44x) += 44x_mmu.o
Christophe Leroya372acf2016-02-09 17:07:50 +010021obj-$(CONFIG_PPC_8xx) += 8xx_mmu.o
Kumar Gala55fd7662009-10-16 18:48:40 -050022obj-$(CONFIG_PPC_FSL_BOOK3E) += fsl_booke_mmu.o
Paul Mackerrasab1f9da2005-10-10 21:58:35 +100023obj-$(CONFIG_NEED_MULTIPLE_NODES) += numa.o
Benjamin Herrenschmidtd0f13e32007-05-08 16:27:27 +100024obj-$(CONFIG_PPC_MM_SLICES) += slice.o
David Gibson883a3e52009-10-26 19:24:31 +000025obj-y += hugetlbpage.o
Rodrigo R. Galvaobadf4362018-08-06 13:42:03 -030026ifdef CONFIG_HUGETLB_PAGE
Becky Bruce41151e72011-06-28 09:54:48 +000027obj-$(CONFIG_PPC_BOOK3E_MMU) += hugetlbpage-book3e.o
David Gibson883a3e52009-10-26 19:24:31 +000028endif
Benjamin Herrenschmidtb16e7762009-05-27 13:36:10 +100029obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-noncoherent.o
Benjamin Herrenschmidt850f6ac32009-06-18 19:25:00 +000030obj-$(CONFIG_HIGHMEM) += highmem.o
Ian Munsiee83d0162014-10-08 19:54:50 +110031obj-$(CONFIG_PPC_COPRO_BASE) += copro_fault.o
Christophe Leroye66c3202019-02-18 12:28:36 +000032obj-$(CONFIG_PPC_PTDUMP) += ptdump/
Andrew Donnellanfb0b0a72019-02-22 11:40:46 +110033
34# Disable kcov instrumentation on sensitive code
35# This is necessary for booting with kcov enabled on book3e machines
36KCOV_INSTRUMENT_tlb_nohash.o := n
37KCOV_INSTRUMENT_fsl_booke_mmu.o := n