1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for the linux ppc-specific parts of the memory manager.
6 subdir-ccflags-
$(CONFIG_PPC_WERROR
) := -Werror
8 ccflags-
$(CONFIG_PPC64
) := $(NO_MINIMAL_TOC
)
10 obj-y
:= fault.o mem.o pgtable.o mmap.o \
11 init_
$(BITS
).o pgtable_
$(BITS
).o \
12 init-common.o mmu_context.o drmem.o
13 obj-
$(CONFIG_PPC_MMU_NOHASH
) += mmu_context_nohash.o tlb_nohash.o \
15 obj-
$(CONFIG_PPC_BOOK3E
) += tlb_low_
$(BITS
)e.o
16 hash64-
$(CONFIG_PPC_NATIVE
) := hash_native_64.o
17 obj-
$(CONFIG_PPC_BOOK3E_64
) += pgtable-book3e.o
18 obj-
$(CONFIG_PPC_BOOK3S_64
) += pgtable-hash64.o hash_utils_64.o slb_low.o slb.o
$(hash64-y
) mmu_context_book3s64.o pgtable-book3s64.o
19 obj-
$(CONFIG_PPC_RADIX_MMU
) += pgtable-radix.o tlb-radix.o
20 obj-
$(CONFIG_PPC_STD_MMU_32
) += ppc_mmu_32.o hash_low_32.o mmu_context_hash32.o
21 obj-
$(CONFIG_PPC_STD_MMU
) += tlb_hash
$(BITS
).o
22 ifeq ($(CONFIG_PPC_BOOK3S_64
),y
)
23 obj-
$(CONFIG_PPC_4K_PAGES
) += hash64_4k.o
24 obj-
$(CONFIG_PPC_64K_PAGES
) += hash64_64k.o
26 obj-
$(CONFIG_40x
) += 40x_mmu.o
27 obj-
$(CONFIG_44x
) += 44x_mmu.o
28 obj-
$(CONFIG_PPC_8xx
) += 8xx_mmu.o
29 obj-
$(CONFIG_PPC_FSL_BOOK3E
) += fsl_booke_mmu.o
30 obj-
$(CONFIG_NEED_MULTIPLE_NODES
) += numa.o
31 obj-
$(CONFIG_PPC_SPLPAR
) += vphn.o
32 obj-
$(CONFIG_PPC_MM_SLICES
) += slice.o
33 obj-y
+= hugetlbpage.o
34 ifeq ($(CONFIG_HUGETLB_PAGE
),y
)
35 obj-
$(CONFIG_PPC_BOOK3S_64
) += hugetlbpage-hash64.o
36 obj-
$(CONFIG_PPC_RADIX_MMU
) += hugetlbpage-radix.o
37 obj-
$(CONFIG_PPC_BOOK3E_MMU
) += hugetlbpage-book3e.o
39 obj-
$(CONFIG_TRANSPARENT_HUGEPAGE
) += hugepage-hash64.o
40 obj-
$(CONFIG_PPC_SUBPAGE_PROT
) += subpage-prot.o
41 obj-
$(CONFIG_NOT_COHERENT_CACHE
) += dma-noncoherent.o
42 obj-
$(CONFIG_HIGHMEM
) += highmem.o
43 obj-
$(CONFIG_PPC_COPRO_BASE
) += copro_fault.o
44 obj-
$(CONFIG_SPAPR_TCE_IOMMU
) += mmu_context_iommu.o
45 obj-
$(CONFIG_PPC_PTDUMP
) += dump_linuxpagetables.o
46 obj-
$(CONFIG_PPC_HTDUMP
) += dump_hashpagetable.o
47 obj-
$(CONFIG_PPC_MEM_KEYS
) += pkeys.o