WIP FPC-III support
[linux/fpc-iii.git] / arch / s390 / kernel / Makefile
blobdd73b7f074237c2482b44ee82169e7790d74639d
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_early.o = $(CC_FLAGS_FTRACE)
14 endif
16 GCOV_PROFILE_early.o := n
17 KCOV_INSTRUMENT_early.o := n
18 UBSAN_SANITIZE_early.o := n
19 KASAN_SANITIZE_ipl.o := n
20 KASAN_SANITIZE_machine_kexec.o := n
23 # Passing null pointers is ok for smp code, since we access the lowcore here.
25 CFLAGS_smp.o := -Wno-nonnull
28 # Disable tailcall optimizations for stack / callchain walking functions
29 # since this might generate broken code when accessing register 15 and
30 # passing its content to other functions.
32 CFLAGS_stacktrace.o += -fno-optimize-sibling-calls
33 CFLAGS_dumpstack.o += -fno-optimize-sibling-calls
34 CFLAGS_unwind_bc.o += -fno-optimize-sibling-calls
36 obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o
37 obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o
38 obj-y += debug.o irq.o ipl.o dis.o diag.o vdso.o
39 obj-y += sysinfo.o lgr.o os_info.o machine_kexec.o pgm_check.o
40 obj-y += runtime_instr.o cache.o fpu.o dumpstack.o guarded_storage.o sthyi.o
41 obj-y += entry.o reipl.o relocate_kernel.o kdebugfs.o alternative.o
42 obj-y += nospec-branch.o ipl_vmparm.o machine_kexec_reloc.o unwind_bc.o
43 obj-y += smp.o
45 extra-y += head64.o vmlinux.lds
47 obj-$(CONFIG_SYSFS) += nospec-sysfs.o
48 CFLAGS_REMOVE_nospec-branch.o += $(CC_FLAGS_EXPOLINE)
50 obj-$(CONFIG_MODULES) += module.o
51 obj-$(CONFIG_SCHED_TOPOLOGY) += topology.o
52 obj-$(CONFIG_NUMA) += numa.o
53 obj-$(CONFIG_AUDIT) += audit.o
54 compat-obj-$(CONFIG_AUDIT) += compat_audit.o
55 obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o
56 obj-$(CONFIG_COMPAT) += $(compat-obj-y)
57 obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
58 obj-$(CONFIG_STACKTRACE) += stacktrace.o
59 obj-$(CONFIG_KPROBES) += kprobes.o
60 obj-$(CONFIG_KPROBES) += kprobes_insn_page.o
61 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
62 obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
63 obj-$(CONFIG_UPROBES) += uprobes.o
64 obj-$(CONFIG_JUMP_LABEL) += jump_label.o
66 obj-$(CONFIG_KEXEC_FILE) += machine_kexec_file.o kexec_image.o
67 obj-$(CONFIG_KEXEC_FILE) += kexec_elf.o
69 obj-$(CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT) += ima_arch.o
71 obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf_common.o
72 obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf.o perf_cpum_sf.o
73 obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf_events.o perf_regs.o
74 obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf_diag.o
76 obj-$(CONFIG_TRACEPOINTS) += trace.o
77 obj-$(findstring y, $(CONFIG_PROTECTED_VIRTUALIZATION_GUEST) $(CONFIG_PGSTE)) += uv.o
79 # vdso
80 obj-y += vdso64/