xref: /linux/arch/x86/mm/Makefile (revision f9b57cf80c8b585614ba223732be0d8f19d558d8)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21cd9c22fSKirill A. Shutemov# Kernel does not boot with instrumentation of tlb.c and mem_encrypt*.c
35c9a8750SDmitry VyukovKCOV_INSTRUMENT_tlb.o			:= n
467bb8e99STom LendackyKCOV_INSTRUMENT_mem_encrypt.o		:= n
51cd9c22fSKirill A. ShutemovKCOV_INSTRUMENT_mem_encrypt_identity.o	:= n
667bb8e99STom Lendacky
767bb8e99STom LendackyKASAN_SANITIZE_mem_encrypt.o		:= n
81cd9c22fSKirill A. ShutemovKASAN_SANITIZE_mem_encrypt_identity.o	:= n
967bb8e99STom Lendacky
1067bb8e99STom Lendackyifdef CONFIG_FUNCTION_TRACER
1167bb8e99STom LendackyCFLAGS_REMOVE_mem_encrypt.o		= -pg
121cd9c22fSKirill A. ShutemovCFLAGS_REMOVE_mem_encrypt_identity.o	= -pg
1367bb8e99STom Lendackyendif
145c9a8750SDmitry Vyukov
15*f9b57cf8SIngo Molnarobj-y				:=  init.o init_$(BITS).o fault.o ioremap.o extable.o mmap.o \
16*f9b57cf8SIngo Molnar				    pgtable.o physaddr.o setup_nx.o tlb.o cpu_entry_area.o maccess.o
17*f9b57cf8SIngo Molnar
18*f9b57cf8SIngo Molnarobj-y				+= pat/
192596e0faSH. Peter Anvin
20577eebeaSJeremy Fitzhardinge# Make sure __phys_addr has no stackprotector
21577eebeaSJeremy Fitzhardingenostackp := $(call cc-option, -fno-stack-protector)
2278c86e5eSJeremy FitzhardingeCFLAGS_physaddr.o		:= $(nostackp)
23c44c9ec0SJeremy FitzhardingeCFLAGS_setup_nx.o		:= $(nostackp)
24ae8d1d00STom LendackyCFLAGS_mem_encrypt_identity.o	:= $(nostackp)
25577eebeaSJeremy Fitzhardinge
269cc342f6SMasahiro YamadaCFLAGS_fault.o := -I $(srctree)/$(src)/../include/asm/trace
27d34603b0SSeiji Aguchi
28fd940934SKeith Packardobj-$(CONFIG_X86_32)		+= pgtable_32.o iomap_32.o
292596e0faSH. Peter Anvin
302596e0faSH. Peter Anvinobj-$(CONFIG_HUGETLB_PAGE)	+= hugetlbpage.o
31e1a58320SStephen Smalleyobj-$(CONFIG_X86_PTDUMP_CORE)	+= dump_pagetables.o
328609d1b5SKees Cookobj-$(CONFIG_X86_PTDUMP)	+= debug_pagetables.o
332596e0faSH. Peter Anvin
342596e0faSH. Peter Anvinobj-$(CONFIG_HIGHMEM)		+= highmem_32.o
352596e0faSH. Peter Anvin
36ef7f0d6aSAndrey RyabininKASAN_SANITIZE_kasan_init_$(BITS).o := n
37ef7f0d6aSAndrey Ryabininobj-$(CONFIG_KASAN)		+= kasan_init_$(BITS).o
38ef7f0d6aSAndrey Ryabinin
39ff3a3e9bSPekka Paalanenobj-$(CONFIG_MMIOTRACE)		+= mmiotrace.o
40fd3fdf11SPekka Paalanenmmiotrace-y			:= kmmio.o pf_in.o mmio-mod.o
41ff3a3e9bSPekka Paalanenobj-$(CONFIG_MMIOTRACE_TEST)	+= testmmiotrace.o
42ff3a3e9bSPekka Paalanen
4371ee73e7SRusty Russellobj-$(CONFIG_NUMA)		+= numa.o numa_$(BITS).o
44c6f58878STejun Heoobj-$(CONFIG_AMD_NUMA)		+= amdtopology.o
455acd91abSTejun Heoobj-$(CONFIG_ACPI_NUMA)		+= srat.o
46b8ef9172STejun Heoobj-$(CONFIG_NUMA_EMU)		+= numa_emulation.o
476247943dSYinghai Lu
4857319d80SQiaowei Renobj-$(CONFIG_X86_INTEL_MPX)			+= mpx.o
4962b5f7d0SDave Hansenobj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS)	+= pkeys.o
500483e1faSThomas Garnierobj-$(CONFIG_RANDOMIZE_MEMORY)			+= kaslr.o
51aa8c6248SThomas Gleixnerobj-$(CONFIG_PAGE_TABLE_ISOLATION)		+= pti.o
5262b5f7d0SDave Hansen
537744ccdbSTom Lendackyobj-$(CONFIG_AMD_MEM_ENCRYPT)	+= mem_encrypt.o
541cd9c22fSKirill A. Shutemovobj-$(CONFIG_AMD_MEM_ENCRYPT)	+= mem_encrypt_identity.o
556ebcb060STom Lendackyobj-$(CONFIG_AMD_MEM_ENCRYPT)	+= mem_encrypt_boot.o
56