xref: /linux/arch/x86/mm/Makefile (revision 67bb8e999e0aeac285d22f0e53c856b9df5282c6)
1*67bb8e99STom Lendacky# Kernel does not boot with instrumentation of tlb.c and mem_encrypt.c
25c9a8750SDmitry VyukovKCOV_INSTRUMENT_tlb.o		:= n
3*67bb8e99STom LendackyKCOV_INSTRUMENT_mem_encrypt.o	:= n
4*67bb8e99STom Lendacky
5*67bb8e99STom LendackyKASAN_SANITIZE_mem_encrypt.o	:= n
6*67bb8e99STom Lendacky
7*67bb8e99STom Lendackyifdef CONFIG_FUNCTION_TRACER
8*67bb8e99STom LendackyCFLAGS_REMOVE_mem_encrypt.o	= -pg
9*67bb8e99STom Lendackyendif
105c9a8750SDmitry Vyukov
11e5b2bb55SPekka Enbergobj-y	:=  init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
12e585513bSKirill A. Shutemov	    pat.o pgtable.o physaddr.o setup_nx.o tlb.o
132596e0faSH. Peter Anvin
14577eebeaSJeremy Fitzhardinge# Make sure __phys_addr has no stackprotector
15577eebeaSJeremy Fitzhardingenostackp := $(call cc-option, -fno-stack-protector)
1678c86e5eSJeremy FitzhardingeCFLAGS_physaddr.o		:= $(nostackp)
17c44c9ec0SJeremy FitzhardingeCFLAGS_setup_nx.o		:= $(nostackp)
18577eebeaSJeremy Fitzhardinge
19d34603b0SSeiji AguchiCFLAGS_fault.o := -I$(src)/../include/asm/trace
20d34603b0SSeiji Aguchi
219e41a49aSPallipadi, Venkateshobj-$(CONFIG_X86_PAT)		+= pat_rbtree.o
2255f4949fSIngo Molnar
23fd940934SKeith Packardobj-$(CONFIG_X86_32)		+= pgtable_32.o iomap_32.o
242596e0faSH. Peter Anvin
252596e0faSH. Peter Anvinobj-$(CONFIG_HUGETLB_PAGE)	+= hugetlbpage.o
26e1a58320SStephen Smalleyobj-$(CONFIG_X86_PTDUMP_CORE)	+= dump_pagetables.o
278609d1b5SKees Cookobj-$(CONFIG_X86_PTDUMP)	+= debug_pagetables.o
282596e0faSH. Peter Anvin
292596e0faSH. Peter Anvinobj-$(CONFIG_HIGHMEM)		+= highmem_32.o
302596e0faSH. Peter Anvin
31dfec072eSVegard Nossumobj-$(CONFIG_KMEMCHECK)		+= kmemcheck/
32dfec072eSVegard Nossum
33ef7f0d6aSAndrey RyabininKASAN_SANITIZE_kasan_init_$(BITS).o := n
34ef7f0d6aSAndrey Ryabininobj-$(CONFIG_KASAN)		+= kasan_init_$(BITS).o
35ef7f0d6aSAndrey Ryabinin
36ff3a3e9bSPekka Paalanenobj-$(CONFIG_MMIOTRACE)		+= mmiotrace.o
37fd3fdf11SPekka Paalanenmmiotrace-y			:= kmmio.o pf_in.o mmio-mod.o
38ff3a3e9bSPekka Paalanenobj-$(CONFIG_MMIOTRACE_TEST)	+= testmmiotrace.o
39ff3a3e9bSPekka Paalanen
4071ee73e7SRusty Russellobj-$(CONFIG_NUMA)		+= numa.o numa_$(BITS).o
41c6f58878STejun Heoobj-$(CONFIG_AMD_NUMA)		+= amdtopology.o
425acd91abSTejun Heoobj-$(CONFIG_ACPI_NUMA)		+= srat.o
43b8ef9172STejun Heoobj-$(CONFIG_NUMA_EMU)		+= numa_emulation.o
446247943dSYinghai Lu
4557319d80SQiaowei Renobj-$(CONFIG_X86_INTEL_MPX)	+= mpx.o
4662b5f7d0SDave Hansenobj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS) += pkeys.o
470483e1faSThomas Garnierobj-$(CONFIG_RANDOMIZE_MEMORY) += kaslr.o
4862b5f7d0SDave Hansen
497744ccdbSTom Lendackyobj-$(CONFIG_AMD_MEM_ENCRYPT)	+= mem_encrypt.o
506ebcb060STom Lendackyobj-$(CONFIG_AMD_MEM_ENCRYPT)	+= mem_encrypt_boot.o
51