Makefile (0c8ea05e9b3d8e5287e2a968f2a2e744dfd31b99) | Makefile (38918e0bb2c51c21ea464b071a254b27ff9aa71d) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the linux kernel. 4# 5 6extra-y += vmlinux.lds 7 8CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) 9 10ifdef CONFIG_FUNCTION_TRACER 11# Do not profile debug and lowlevel utilities 12CFLAGS_REMOVE_tsc.o = -pg 13CFLAGS_REMOVE_paravirt-spinlocks.o = -pg 14CFLAGS_REMOVE_pvclock.o = -pg 15CFLAGS_REMOVE_kvmclock.o = -pg 16CFLAGS_REMOVE_ftrace.o = -pg 17CFLAGS_REMOVE_early_printk.o = -pg 18CFLAGS_REMOVE_head64.o = -pg 19CFLAGS_REMOVE_head32.o = -pg | 1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the linux kernel. 4# 5 6extra-y += vmlinux.lds 7 8CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) 9 10ifdef CONFIG_FUNCTION_TRACER 11# Do not profile debug and lowlevel utilities 12CFLAGS_REMOVE_tsc.o = -pg 13CFLAGS_REMOVE_paravirt-spinlocks.o = -pg 14CFLAGS_REMOVE_pvclock.o = -pg 15CFLAGS_REMOVE_kvmclock.o = -pg 16CFLAGS_REMOVE_ftrace.o = -pg 17CFLAGS_REMOVE_early_printk.o = -pg 18CFLAGS_REMOVE_head64.o = -pg 19CFLAGS_REMOVE_head32.o = -pg |
20CFLAGS_REMOVE_sev.o = -pg | |
21CFLAGS_REMOVE_rethook.o = -pg 22endif 23 24KASAN_SANITIZE_head$(BITS).o := n 25KASAN_SANITIZE_dumpstack.o := n 26KASAN_SANITIZE_dumpstack_$(BITS).o := n 27KASAN_SANITIZE_stacktrace.o := n 28KASAN_SANITIZE_paravirt.o := n | 20CFLAGS_REMOVE_rethook.o = -pg 21endif 22 23KASAN_SANITIZE_head$(BITS).o := n 24KASAN_SANITIZE_dumpstack.o := n 25KASAN_SANITIZE_dumpstack_$(BITS).o := n 26KASAN_SANITIZE_stacktrace.o := n 27KASAN_SANITIZE_paravirt.o := n |
29KASAN_SANITIZE_sev.o := n | |
30 31# With some compiler versions the generated code results in boot hangs, caused 32# by several compilation units. To be safe, disable all instrumentation. 33KCSAN_SANITIZE := n 34KMSAN_SANITIZE_head$(BITS).o := n 35KMSAN_SANITIZE_nmi.o := n | 28 29# With some compiler versions the generated code results in boot hangs, caused 30# by several compilation units. To be safe, disable all instrumentation. 31KCSAN_SANITIZE := n 32KMSAN_SANITIZE_head$(BITS).o := n 33KMSAN_SANITIZE_nmi.o := n |
36KMSAN_SANITIZE_sev.o := n | |
37 38# If instrumentation of the following files is enabled, boot hangs during 39# first second. 40KCOV_INSTRUMENT_head$(BITS).o := n | 34 35# If instrumentation of the following files is enabled, boot hangs during 36# first second. 37KCOV_INSTRUMENT_head$(BITS).o := n |
41KCOV_INSTRUMENT_sev.o := n | |
42 43CFLAGS_irq.o := -I $(src)/../include/asm/trace 44 45obj-y += head_$(BITS).o 46obj-y += head$(BITS).o 47obj-y += ebda.o 48obj-y += platform-quirks.o 49obj-y += process_$(BITS).o signal.o signal_$(BITS).o --- 87 unchanged lines hidden (view full) --- 137obj-$(CONFIG_TRACING) += tracepoint.o 138obj-$(CONFIG_SCHED_MC_PRIO) += itmt.o 139obj-$(CONFIG_X86_UMIP) += umip.o 140 141obj-$(CONFIG_UNWINDER_ORC) += unwind_orc.o 142obj-$(CONFIG_UNWINDER_FRAME_POINTER) += unwind_frame.o 143obj-$(CONFIG_UNWINDER_GUESS) += unwind_guess.o 144 | 38 39CFLAGS_irq.o := -I $(src)/../include/asm/trace 40 41obj-y += head_$(BITS).o 42obj-y += head$(BITS).o 43obj-y += ebda.o 44obj-y += platform-quirks.o 45obj-y += process_$(BITS).o signal.o signal_$(BITS).o --- 87 unchanged lines hidden (view full) --- 133obj-$(CONFIG_TRACING) += tracepoint.o 134obj-$(CONFIG_SCHED_MC_PRIO) += itmt.o 135obj-$(CONFIG_X86_UMIP) += umip.o 136 137obj-$(CONFIG_UNWINDER_ORC) += unwind_orc.o 138obj-$(CONFIG_UNWINDER_FRAME_POINTER) += unwind_frame.o 139obj-$(CONFIG_UNWINDER_GUESS) += unwind_guess.o 140 |
145obj-$(CONFIG_AMD_MEM_ENCRYPT) += sev.o 146 | |
147obj-$(CONFIG_CFI_CLANG) += cfi.o 148 149obj-$(CONFIG_CALL_THUNKS) += callthunks.o 150 151obj-$(CONFIG_X86_CET) += cet.o 152 153obj-$(CONFIG_X86_USER_SHADOW_STACK) += shstk.o 154 155### 156# 64 bit specific files 157ifeq ($(CONFIG_X86_64),y) 158 obj-$(CONFIG_AUDIT) += audit_64.o 159 160 obj-$(CONFIG_GART_IOMMU) += amd_gart_64.o aperture_64.o 161 162 obj-$(CONFIG_MMCONF_FAM10H) += mmconf-fam10h_64.o 163 obj-y += vsmp_64.o 164endif | 141obj-$(CONFIG_CFI_CLANG) += cfi.o 142 143obj-$(CONFIG_CALL_THUNKS) += callthunks.o 144 145obj-$(CONFIG_X86_CET) += cet.o 146 147obj-$(CONFIG_X86_USER_SHADOW_STACK) += shstk.o 148 149### 150# 64 bit specific files 151ifeq ($(CONFIG_X86_64),y) 152 obj-$(CONFIG_AUDIT) += audit_64.o 153 154 obj-$(CONFIG_GART_IOMMU) += amd_gart_64.o aperture_64.o 155 156 obj-$(CONFIG_MMCONF_FAM10H) += mmconf-fam10h_64.o 157 obj-y += vsmp_64.o 158endif |