# SPDX-License-Identifier: GPL-2.0 # Kernel does not boot with instrumentation of tlb.c and mem_encrypt*.c KCOV_INSTRUMENT_tlb.o := n KCOV_INSTRUMENT_mem_encrypt.o := n KCOV_INSTRUMENT_mem_encrypt_identity.o := n KASAN_SANITIZE_mem_encrypt.o := n KASAN_SANITIZE_mem_encrypt_identity.o := n ifdef [31mCONFIG_FUNCTION_TRACER[0m CFLAGS_REMOVE_mem_encrypt.o = -pg CFLAGS_REMOVE_mem_encrypt_identity.o = -pg endif obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \ pat.o pgtable.o physaddr.o setup_nx.o tlb.o cpu_entry_area.o # Make sure __phys_addr has no stackprotector nostackp := $(call cc-option, -fno-stack-protector) CFLAGS_physaddr.o := $(nostackp) CFLAGS_setup_nx.o := $(nostackp) CFLAGS_mem_encrypt_identity.o := $(nostackp) CFLAGS_fault.o := -I $(srctree)/$(src)/../include/asm/trace obj-$([31mCONFIG_X86_PAT[0m) += pat_rbtree.o obj-$([31mCONFIG_X86_32[0m) += pgtable_32.o iomap_32.o obj-$([31mCONFIG_HUGETLB_PAGE[0m) += hugetlbpage.o obj-$([31mCONFIG_X86_PTDUMP_CORE[0m) += dump_pagetables.o obj-$([31mCONFIG_X86_PTDUMP[0m) += debug_pagetables.o obj-$([31mCONFIG_HIGHMEM[0m) += highmem_32.o KASAN_SANITIZE_kasan_init_$(BITS).o := n obj-$([31mCONFIG_KASAN[0m) += kasan_init_$(BITS).o obj-$([31mCONFIG_MMIOTRACE[0m) += mmiotrace.o mmiotrace-y := kmmio.o pf_in.o mmio-mod.o obj-$([31mCONFIG_MMIOTRACE_TEST[0m) += testmmiotrace.o obj-$([31mCONFIG_NUMA[0m) += numa.o numa_$(BITS).o obj-$([31mCONFIG_AMD_NUMA[0m) += amdtopology.o obj-$([31mCONFIG_ACPI_NUMA[0m) += srat.o obj-$([31mCONFIG_NUMA_EMU[0m) += numa_emulation.o obj-$([31mCONFIG_X86_INTEL_MPX[0m) += mpx.o obj-$([31mCONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS[0m) += pkeys.o obj-$([31mCONFIG_RANDOMIZE_MEMORY[0m) += kaslr.o obj-$([31mCONFIG_PAGE_TABLE_ISOLATION[0m) += pti.o obj-$([31mCONFIG_AMD_MEM_ENCRYPT[0m) += mem_encrypt.o obj-$([31mCONFIG_AMD_MEM_ENCRYPT[0m) += mem_encrypt_identity.o obj-$([31mCONFIG_AMD_MEM_ENCRYPT[0m) += mem_encrypt_boot.o |