Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / s390 / kernel / Makefile
blob7f27e3da9709c1a968bff98f9750d551a7d53bcc
1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for the linux kernel.
6 ifdef CONFIG_FUNCTION_TRACER
8 # Do not trace tracer code
9 CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
11 # Do not trace early setup code
12 CFLAGS_REMOVE_als.o = $(CC_FLAGS_FTRACE)
13 CFLAGS_REMOVE_early.o = $(CC_FLAGS_FTRACE)
15 endif
17 GCOV_PROFILE_als.o := n
18 GCOV_PROFILE_early.o := n
20 KCOV_INSTRUMENT_als.o := n
21 KCOV_INSTRUMENT_early.o := n
23 UBSAN_SANITIZE_als.o := n
24 UBSAN_SANITIZE_early.o := n
27 # Use -march=z900 for als.c to be able to print an error
28 # message if the kernel is started on a machine which is too old
30 ifneq ($(CC_FLAGS_MARCH),-march=z900)
31 CFLAGS_REMOVE_als.o += $(CC_FLAGS_MARCH)
32 CFLAGS_REMOVE_als.o += $(CC_FLAGS_EXPOLINE)
33 CFLAGS_als.o += -march=z900
34 AFLAGS_REMOVE_head.o += $(CC_FLAGS_MARCH)
35 AFLAGS_head.o += -march=z900
36 endif
38 CFLAGS_als.o += -D__NO_FORTIFY
41 # Passing null pointers is ok for smp code, since we access the lowcore here.
43 CFLAGS_smp.o := -Wno-nonnull
46 # Disable tailcall optimizations for stack / callchain walking functions
47 # since this might generate broken code when accessing register 15 and
48 # passing its content to other functions.
50 CFLAGS_stacktrace.o += -fno-optimize-sibling-calls
51 CFLAGS_dumpstack.o += -fno-optimize-sibling-calls
54 # Pass UTS_MACHINE for user_regset definition
56 CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
58 obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o
59 obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o
60 obj-y += debug.o irq.o ipl.o dis.o diag.o vdso.o als.o
61 obj-y += sysinfo.o jump_label.o lgr.o os_info.o machine_kexec.o pgm_check.o
62 obj-y += runtime_instr.o cache.o fpu.o dumpstack.o guarded_storage.o sthyi.o
63 obj-y += entry.o reipl.o relocate_kernel.o kdebugfs.o alternative.o
65 extra-y += head.o head64.o vmlinux.lds
67 obj-$(CONFIG_EXPOLINE) += nospec-branch.o
68 CFLAGS_REMOVE_expoline.o += $(CC_FLAGS_EXPOLINE)
70 obj-$(CONFIG_MODULES) += module.o
71 obj-$(CONFIG_SMP) += smp.o
72 obj-$(CONFIG_SCHED_TOPOLOGY) += topology.o
73 obj-$(CONFIG_HIBERNATION) += suspend.o swsusp.o
74 obj-$(CONFIG_AUDIT) += audit.o
75 compat-obj-$(CONFIG_AUDIT) += compat_audit.o
76 obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o
77 obj-$(CONFIG_COMPAT) += compat_wrapper.o $(compat-obj-y)
78 obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
79 obj-$(CONFIG_STACKTRACE) += stacktrace.o
80 obj-$(CONFIG_KPROBES) += kprobes.o
81 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
82 obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
83 obj-$(CONFIG_UPROBES) += uprobes.o
85 obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf.o perf_cpum_sf.o
86 obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf_events.o perf_regs.o
88 obj-$(CONFIG_TRACEPOINTS) += trace.o
90 # vdso
91 obj-y += vdso64/
92 obj-$(CONFIG_COMPAT) += vdso32/