The config CONFIG_PPC_PKEY is used to select the base support that is required for PPC_MEM_KEYS, KUAP, and KUEP. Adding this dependency reduces the code complexity(in terms of #ifdefs) and enables us to move some of the initialization code to pkeys.c Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201127044424.40686-4-aneesh.kumar@linux.ibm.com
24 lines
794 B
Makefile
24 lines
794 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
ccflags-y := $(NO_MINIMAL_TOC)
|
|
|
|
CFLAGS_REMOVE_slb.o = $(CC_FLAGS_FTRACE)
|
|
|
|
obj-y += hash_pgtable.o hash_utils.o slb.o \
|
|
mmu_context.o pgtable.o hash_tlb.o
|
|
obj-$(CONFIG_PPC_NATIVE) += hash_native.o
|
|
obj-$(CONFIG_PPC_RADIX_MMU) += radix_pgtable.o radix_tlb.o
|
|
obj-$(CONFIG_PPC_4K_PAGES) += hash_4k.o
|
|
obj-$(CONFIG_PPC_64K_PAGES) += hash_64k.o
|
|
obj-$(CONFIG_HUGETLB_PAGE) += hash_hugetlbpage.o
|
|
ifdef CONFIG_HUGETLB_PAGE
|
|
obj-$(CONFIG_PPC_RADIX_MMU) += radix_hugetlbpage.o
|
|
endif
|
|
obj-$(CONFIG_TRANSPARENT_HUGEPAGE) += hash_hugepage.o
|
|
obj-$(CONFIG_PPC_SUBPAGE_PROT) += subpage_prot.o
|
|
obj-$(CONFIG_SPAPR_TCE_IOMMU) += iommu_api.o
|
|
obj-$(CONFIG_PPC_PKEY) += pkeys.o
|
|
|
|
# Instrumenting the SLB fault path can lead to duplicate SLB entries
|
|
KCOV_INSTRUMENT_slb.o := n
|