xref: /linux/arch/x86/mm/Makefile (revision 5c9a8750a6409c63a0f01d51a9024861022f6593)
1*5c9a8750SDmitry Vyukov# Kernel does not boot with instrumentation of tlb.c.
2*5c9a8750SDmitry VyukovKCOV_INSTRUMENT_tlb.o	:= n
3*5c9a8750SDmitry Vyukov
4e5b2bb55SPekka Enbergobj-y	:=  init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
5c44c9ec0SJeremy Fitzhardinge	    pat.o pgtable.o physaddr.o gup.o setup_nx.o
62596e0faSH. Peter Anvin
7577eebeaSJeremy Fitzhardinge# Make sure __phys_addr has no stackprotector
8577eebeaSJeremy Fitzhardingenostackp := $(call cc-option, -fno-stack-protector)
978c86e5eSJeremy FitzhardingeCFLAGS_physaddr.o		:= $(nostackp)
10c44c9ec0SJeremy FitzhardingeCFLAGS_setup_nx.o		:= $(nostackp)
11577eebeaSJeremy Fitzhardinge
12d34603b0SSeiji AguchiCFLAGS_fault.o := -I$(src)/../include/asm/trace
13d34603b0SSeiji Aguchi
149e41a49aSPallipadi, Venkateshobj-$(CONFIG_X86_PAT)		+= pat_rbtree.o
153e5095d1SIngo Molnarobj-$(CONFIG_SMP)		+= tlb.o
1655f4949fSIngo Molnar
17fd940934SKeith Packardobj-$(CONFIG_X86_32)		+= pgtable_32.o iomap_32.o
182596e0faSH. Peter Anvin
192596e0faSH. Peter Anvinobj-$(CONFIG_HUGETLB_PAGE)	+= hugetlbpage.o
20e1a58320SStephen Smalleyobj-$(CONFIG_X86_PTDUMP_CORE)	+= dump_pagetables.o
218609d1b5SKees Cookobj-$(CONFIG_X86_PTDUMP)	+= debug_pagetables.o
222596e0faSH. Peter Anvin
232596e0faSH. Peter Anvinobj-$(CONFIG_HIGHMEM)		+= highmem_32.o
242596e0faSH. Peter Anvin
25dfec072eSVegard Nossumobj-$(CONFIG_KMEMCHECK)		+= kmemcheck/
26dfec072eSVegard Nossum
27ef7f0d6aSAndrey RyabininKASAN_SANITIZE_kasan_init_$(BITS).o := n
28ef7f0d6aSAndrey Ryabininobj-$(CONFIG_KASAN)		+= kasan_init_$(BITS).o
29ef7f0d6aSAndrey Ryabinin
30ff3a3e9bSPekka Paalanenobj-$(CONFIG_MMIOTRACE)		+= mmiotrace.o
31fd3fdf11SPekka Paalanenmmiotrace-y			:= kmmio.o pf_in.o mmio-mod.o
32ff3a3e9bSPekka Paalanenobj-$(CONFIG_MMIOTRACE_TEST)	+= testmmiotrace.o
33ff3a3e9bSPekka Paalanen
3471ee73e7SRusty Russellobj-$(CONFIG_NUMA)		+= numa.o numa_$(BITS).o
35c6f58878STejun Heoobj-$(CONFIG_AMD_NUMA)		+= amdtopology.o
365acd91abSTejun Heoobj-$(CONFIG_ACPI_NUMA)		+= srat.o
37b8ef9172STejun Heoobj-$(CONFIG_NUMA_EMU)		+= numa_emulation.o
386247943dSYinghai Lu
3957319d80SQiaowei Renobj-$(CONFIG_X86_INTEL_MPX)	+= mpx.o
4062b5f7d0SDave Hansenobj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS) += pkeys.o
4162b5f7d0SDave Hansen
42