1 # SPDX-License-Identifier: GPL-2.0 2 # 3 # Makefile for the linux kernel. 4 # 5 6 ifdef CONFIG_FUNCTION_TRACER 7 8 # Do not trace tracer code 9 CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_F 10 11 # Do not trace early setup code 12 CFLAGS_REMOVE_early.o = $(CC_FLAGS_F 13 CFLAGS_REMOVE_rethook.o = $(CC_FLAGS_F 14 CFLAGS_REMOVE_stacktrace.o = $(CC_FLAGS_F 15 CFLAGS_REMOVE_unwind_bc.o = $(CC_FLAGS_F 16 17 endif 18 19 GCOV_PROFILE_early.o := n 20 KCOV_INSTRUMENT_early.o := n 21 UBSAN_SANITIZE_early.o := n 22 KASAN_SANITIZE_ipl.o := n 23 KASAN_SANITIZE_machine_kexec.o := n 24 25 # 26 # Passing null pointers is ok for smp code, si 27 # 28 CFLAGS_smp.o := -Wno-nonnull 29 30 # 31 # Disable tailcall optimizations for stack / c 32 # since this might generate broken code when a 33 # passing its content to other functions. 34 # 35 CFLAGS_stacktrace.o += -fno-optimize-sibli 36 CFLAGS_dumpstack.o += -fno-optimize-sibli 37 CFLAGS_unwind_bc.o += -fno-optimize-sibli 38 39 obj-y := head64.o traps.o time.o process.o e 40 obj-y += processor.o syscall.o ptrace.o sign 41 obj-y += debug.o irq.o ipl.o dis.o diag.o vd 42 obj-y += sysinfo.o lgr.o os_info.o ctlreg.o 43 obj-y += runtime_instr.o cache.o fpu.o dumps 44 obj-y += entry.o reipl.o kdebugfs.o alternat 45 obj-y += nospec-branch.o ipl_vmparm.o machin 46 obj-y += smp.o text_amode31.o stacktrace.o a 47 48 extra-y += vmlinux.lds 49 50 obj-$(CONFIG_SYSFS) += nospec-sysf 51 CFLAGS_REMOVE_nospec-branch.o += $(CC_FLAGS_ 52 53 obj-$(CONFIG_SYSFS) += cpacf.o 54 obj-$(CONFIG_MODULES) += module.o 55 obj-$(CONFIG_SCHED_TOPOLOGY) += topology.o 56 obj-$(CONFIG_NUMA) += numa.o 57 obj-$(CONFIG_AUDIT) += audit.o 58 compat-obj-$(CONFIG_AUDIT) += compat_audi 59 obj-$(CONFIG_COMPAT) += compat_linu 60 obj-$(CONFIG_COMPAT) += $(compat-ob 61 obj-$(CONFIG_EARLY_PRINTK) += early_print 62 obj-$(CONFIG_KPROBES) += kprobes.o 63 obj-$(CONFIG_KPROBES) += mcount.o 64 obj-$(CONFIG_RETHOOK) += rethook.o 65 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o 66 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o 67 obj-$(CONFIG_CRASH_DUMP) += crash_dump. 68 obj-$(CONFIG_KEXEC_CORE) += machine_kex 69 obj-$(CONFIG_VMCORE_INFO) += vmcore_info 70 obj-$(CONFIG_UPROBES) += uprobes.o 71 obj-$(CONFIG_JUMP_LABEL) += jump_label. 72 73 obj-$(CONFIG_KEXEC_FILE) += machine_kex 74 obj-$(CONFIG_KEXEC_FILE) += kexec_elf.o 75 obj-$(CONFIG_CERT_STORE) += cert_store. 76 obj-$(CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT) 77 78 obj-$(CONFIG_PERF_EVENTS) += perf_event. 79 obj-$(CONFIG_PERF_EVENTS) += perf_cpum_c 80 obj-$(CONFIG_PERF_EVENTS) += perf_cpum_c 81 obj-$(CONFIG_PERF_EVENTS) += perf_pai_cr 82 83 obj-$(CONFIG_TRACEPOINTS) += trace.o 84 85 # vdso 86 obj-y += vdso64/ 87 obj-$(CONFIG_COMPAT) += vdso32/
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.