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 54CFLAGS_sysinfo.o += -w 55 56obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o 57obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o 58obj-y += debug.o irq.o ipl.o dis.o diag.o vdso.o als.o 59obj-y += sysinfo.o jump_label.o lgr.o os_info.o machine_kexec.o pgm_check.o 60obj-y += runtime_instr.o cache.o fpu.o dumpstack.o 61obj-y += entry.o reipl.o relocate_kernel.o 62 63extra-y += head.o head64.o vmlinux.lds 64 65obj-$(CONFIG_MODULES) += module.o 66obj-$(CONFIG_SMP) += smp.o 67obj-$(CONFIG_SCHED_TOPOLOGY) += topology.o 68obj-$(CONFIG_HIBERNATION) += suspend.o swsusp.o 69obj-$(CONFIG_AUDIT) += audit.o 70compat-obj-$(CONFIG_AUDIT) += compat_audit.o 71obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o 72obj-$(CONFIG_COMPAT) += compat_wrapper.o $(compat-obj-y) 73obj-$(CONFIG_EARLY_PRINTK) += early_printk.o 74obj-$(CONFIG_STACKTRACE) += stacktrace.o 75obj-$(CONFIG_KPROBES) += kprobes.o 76obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 77obj-$(CONFIG_CRASH_DUMP) += crash_dump.o 78obj-$(CONFIG_UPROBES) += uprobes.o 79 80obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf.o perf_cpum_sf.o 81obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf_events.o 82 83obj-$(CONFIG_TRACEPOINTS) += trace.o 84 85# vdso 86obj-y += vdso64/ 87obj-$(CONFIG_COMPAT) += vdso32/ 88