1 # SPDX-License-Identifier: GPL-2.0
3 ccflags-y
:= $(NO_MINIMAL_TOC
)
5 CFLAGS_REMOVE_slb.o
= $(CC_FLAGS_FTRACE
)
7 obj-y
+= hash_pgtable.o hash_utils.o slb.o \
8 mmu_context.o pgtable.o hash_tlb.o
9 obj-
$(CONFIG_PPC_NATIVE
) += hash_native.o
10 obj-
$(CONFIG_PPC_RADIX_MMU
) += radix_pgtable.o radix_tlb.o
11 obj-
$(CONFIG_PPC_4K_PAGES
) += hash_4k.o
12 obj-
$(CONFIG_PPC_64K_PAGES
) += hash_64k.o
13 obj-
$(CONFIG_HUGETLB_PAGE
) += hash_hugetlbpage.o
14 ifdef CONFIG_HUGETLB_PAGE
15 obj-
$(CONFIG_PPC_RADIX_MMU
) += radix_hugetlbpage.o
17 obj-
$(CONFIG_TRANSPARENT_HUGEPAGE
) += hash_hugepage.o
18 obj-
$(CONFIG_PPC_SUBPAGE_PROT
) += subpage_prot.o
19 obj-
$(CONFIG_SPAPR_TCE_IOMMU
) += iommu_api.o
20 obj-
$(CONFIG_PPC_PKEY
) += pkeys.o
22 # Instrumenting the SLB fault path can lead to duplicate SLB entries
23 KCOV_INSTRUMENT_slb.o
:= n