1# 2# Makefile for the linux kernel. 3# 4 5ifdef CONFIG_FUNCTION_TRACER 6 7# Do not trace tracer code 8CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) 9 10# Do not trace early setup code 11CFLAGS_REMOVE_als.o = $(CC_FLAGS_FTRACE) 12CFLAGS_REMOVE_early.o = $(CC_FLAGS_FTRACE) 13 14endif 15 16GCOV_PROFILE_als.o := n 17GCOV_PROFILE_early.o := n 18 19KCOV_INSTRUMENT_als.o := n 20KCOV_INSTRUMENT_early.o := n 21 22UBSAN_SANITIZE_als.o := n 23UBSAN_SANITIZE_early.o := n 24 25# 26# Use -march=z900 for als.c to be able to print an error 27# message if the kernel is started on a machine which is too old 28# 29ifneq ($(CC_FLAGS_MARCH),-march=z900) 30CFLAGS_REMOVE_als.o += $(CC_FLAGS_MARCH) 31CFLAGS_als.o += -march=z900 32AFLAGS_REMOVE_head.o += $(CC_FLAGS_MARCH) 33AFLAGS_head.o += -march=z900 34endif 35 36# 37# Passing null pointers is ok for smp code, since we access the lowcore here. 38# 39CFLAGS_smp.o := -Wno-nonnull 40 41# 42# Disable tailcall optimizations for stack / callchain walking functions 43# since this might generate broken code when accessing register 15 and 44# passing its content to other functions. 45# 46CFLAGS_stacktrace.o += -fno-optimize-sibling-calls 47CFLAGS_dumpstack.o += -fno-optimize-sibling-calls 48 49# 50# Pass UTS_MACHINE for user_regset definition 51# 52CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' 53 54obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o 55obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o 56obj-y += debug.o irq.o ipl.o dis.o diag.o vdso.o als.o 57obj-y += sysinfo.o jump_label.o lgr.o os_info.o machine_kexec.o pgm_check.o 58obj-y += runtime_instr.o cache.o fpu.o dumpstack.o guarded_storage.o 59obj-y += entry.o reipl.o relocate_kernel.o kdebugfs.o 60 61extra-y += head.o head64.o vmlinux.lds 62 63obj-$(CONFIG_MODULES) += module.o 64obj-$(CONFIG_SMP) += smp.o 65obj-$(CONFIG_SCHED_TOPOLOGY) += topology.o 66obj-$(CONFIG_HIBERNATION) += suspend.o swsusp.o 67obj-$(CONFIG_AUDIT) += audit.o 68compat-obj-$(CONFIG_AUDIT) += compat_audit.o 69obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o 70obj-$(CONFIG_COMPAT) += compat_wrapper.o $(compat-obj-y) 71obj-$(CONFIG_EARLY_PRINTK) += early_printk.o 72obj-$(CONFIG_STACKTRACE) += stacktrace.o 73obj-$(CONFIG_KPROBES) += kprobes.o 74obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 75obj-$(CONFIG_CRASH_DUMP) += crash_dump.o 76obj-$(CONFIG_UPROBES) += uprobes.o 77 78obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf.o perf_cpum_sf.o 79obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf_events.o 80 81obj-$(CONFIG_TRACEPOINTS) += trace.o 82 83# vdso 84obj-y += vdso64/ 85obj-$(CONFIG_COMPAT) += vdso32/ 86