xref: /openbmc/linux/arch/x86/mm/Makefile (revision a9a08845)
1# SPDX-License-Identifier: GPL-2.0
2# Kernel does not boot with instrumentation of tlb.c and mem_encrypt.c
3KCOV_INSTRUMENT_tlb.o		:= n
4KCOV_INSTRUMENT_mem_encrypt.o	:= n
5
6KASAN_SANITIZE_mem_encrypt.o	:= n
7
8ifdef CONFIG_FUNCTION_TRACER
9CFLAGS_REMOVE_mem_encrypt.o	= -pg
10endif
11
12obj-y	:=  init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
13	    pat.o pgtable.o physaddr.o setup_nx.o tlb.o cpu_entry_area.o
14
15# Make sure __phys_addr has no stackprotector
16nostackp := $(call cc-option, -fno-stack-protector)
17CFLAGS_physaddr.o		:= $(nostackp)
18CFLAGS_setup_nx.o		:= $(nostackp)
19
20CFLAGS_fault.o := -I$(src)/../include/asm/trace
21
22obj-$(CONFIG_X86_PAT)		+= pat_rbtree.o
23
24obj-$(CONFIG_X86_32)		+= pgtable_32.o iomap_32.o
25
26obj-$(CONFIG_HUGETLB_PAGE)	+= hugetlbpage.o
27obj-$(CONFIG_X86_PTDUMP_CORE)	+= dump_pagetables.o
28obj-$(CONFIG_X86_PTDUMP)	+= debug_pagetables.o
29
30obj-$(CONFIG_HIGHMEM)		+= highmem_32.o
31
32KASAN_SANITIZE_kasan_init_$(BITS).o := n
33obj-$(CONFIG_KASAN)		+= kasan_init_$(BITS).o
34
35obj-$(CONFIG_MMIOTRACE)		+= mmiotrace.o
36mmiotrace-y			:= kmmio.o pf_in.o mmio-mod.o
37obj-$(CONFIG_MMIOTRACE_TEST)	+= testmmiotrace.o
38
39obj-$(CONFIG_NUMA)		+= numa.o numa_$(BITS).o
40obj-$(CONFIG_AMD_NUMA)		+= amdtopology.o
41obj-$(CONFIG_ACPI_NUMA)		+= srat.o
42obj-$(CONFIG_NUMA_EMU)		+= numa_emulation.o
43
44obj-$(CONFIG_X86_INTEL_MPX)			+= mpx.o
45obj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS)	+= pkeys.o
46obj-$(CONFIG_RANDOMIZE_MEMORY)			+= kaslr.o
47obj-$(CONFIG_PAGE_TABLE_ISOLATION)		+= pti.o
48
49obj-$(CONFIG_AMD_MEM_ENCRYPT)	+= mem_encrypt.o
50obj-$(CONFIG_AMD_MEM_ENCRYPT)	+= mem_encrypt_boot.o
51