2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2008-12-25 12:38:56 +00:00
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
2016-12-07 09:38:36 +00:00
|
|
|
|
|
|
|
# Do not trace tracer code
|
|
|
|
CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
|
|
|
|
|
|
|
|
# Do not trace early setup code
|
|
|
|
CFLAGS_REMOVE_als.o = $(CC_FLAGS_FTRACE)
|
|
|
|
CFLAGS_REMOVE_early.o = $(CC_FLAGS_FTRACE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
GCOV_PROFILE_als.o := n
|
|
|
|
GCOV_PROFILE_early.o := n
|
|
|
|
|
|
|
|
KCOV_INSTRUMENT_als.o := n
|
|
|
|
KCOV_INSTRUMENT_early.o := n
|
|
|
|
|
|
|
|
UBSAN_SANITIZE_als.o := n
|
|
|
|
UBSAN_SANITIZE_early.o := n
|
|
|
|
|
|
|
|
#
|
2017-01-24 14:45:13 +00:00
|
|
|
# Use -march=z900 for als.c to be able to print an error
|
2016-12-07 09:38:36 +00:00
|
|
|
# message if the kernel is started on a machine which is too old
|
|
|
|
#
|
|
|
|
ifneq ($(CC_FLAGS_MARCH),-march=z900)
|
|
|
|
CFLAGS_REMOVE_als.o += $(CC_FLAGS_MARCH)
|
|
|
|
CFLAGS_als.o += -march=z900
|
|
|
|
AFLAGS_REMOVE_head.o += $(CC_FLAGS_MARCH)
|
|
|
|
AFLAGS_head.o += -march=z900
|
2009-06-12 08:26:44 +00:00
|
|
|
endif
|
|
|
|
|
2008-03-05 11:37:09 +00:00
|
|
|
#
|
|
|
|
# Passing null pointers is ok for smp code, since we access the lowcore here.
|
|
|
|
#
|
2016-12-07 09:38:36 +00:00
|
|
|
CFLAGS_smp.o := -Wno-nonnull
|
2008-03-05 11:37:09 +00:00
|
|
|
|
2013-03-14 12:44:25 +00:00
|
|
|
#
|
|
|
|
# Disable tailcall optimizations for stack / callchain walking functions
|
|
|
|
# since this might generate broken code when accessing register 15 and
|
|
|
|
# passing its content to other functions.
|
|
|
|
#
|
|
|
|
CFLAGS_stacktrace.o += -fno-optimize-sibling-calls
|
|
|
|
CFLAGS_dumpstack.o += -fno-optimize-sibling-calls
|
|
|
|
|
2008-07-14 07:58:54 +00:00
|
|
|
#
|
|
|
|
# Pass UTS_MACHINE for user_regset definition
|
|
|
|
#
|
|
|
|
CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
|
|
|
|
|
2016-12-07 09:38:36 +00:00
|
|
|
CFLAGS_sysinfo.o += -w
|
2015-07-08 08:20:04 +00:00
|
|
|
|
2014-10-01 08:57:57 +00:00
|
|
|
obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o
|
2013-03-14 12:44:25 +00:00
|
|
|
obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o
|
2017-01-24 14:45:13 +00:00
|
|
|
obj-y += debug.o irq.o ipl.o dis.o diag.o vdso.o als.o
|
2013-03-14 12:44:25 +00:00
|
|
|
obj-y += sysinfo.o jump_label.o lgr.o os_info.o machine_kexec.o pgm_check.o
|
2015-02-18 13:46:00 +00:00
|
|
|
obj-y += runtime_instr.o cache.o fpu.o dumpstack.o
|
2015-02-13 12:04:39 +00:00
|
|
|
obj-y += entry.o reipl.o relocate_kernel.o
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2015-02-12 12:08:27 +00:00
|
|
|
extra-y += head.o head64.o vmlinux.lds
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2016-01-12 18:30:03 +00:00
|
|
|
obj-$(CONFIG_MODULES) += module.o
|
2011-12-27 10:27:09 +00:00
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
2015-12-28 12:20:43 +00:00
|
|
|
obj-$(CONFIG_SCHED_TOPOLOGY) += topology.o
|
2015-03-24 07:10:53 +00:00
|
|
|
obj-$(CONFIG_HIBERNATION) += suspend.o swsusp.o
|
2006-08-31 23:02:42 +00:00
|
|
|
obj-$(CONFIG_AUDIT) += audit.o
|
|
|
|
compat-obj-$(CONFIG_AUDIT) += compat_audit.o
|
2014-03-06 10:24:41 +00:00
|
|
|
obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o
|
|
|
|
obj-$(CONFIG_COMPAT) += compat_wrapper.o $(compat-obj-y)
|
2017-01-11 08:14:52 +00:00
|
|
|
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
2006-07-03 07:24:41 +00:00
|
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
2006-09-20 13:58:39 +00:00
|
|
|
obj-$(CONFIG_KPROBES) += kprobes.o
|
2014-10-07 13:45:10 +00:00
|
|
|
obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
2011-10-30 14:16:40 +00:00
|
|
|
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
|
2014-09-22 14:39:06 +00:00
|
|
|
obj-$(CONFIG_UPROBES) += uprobes.o
|
2012-09-14 10:57:39 +00:00
|
|
|
|
2015-02-12 12:08:27 +00:00
|
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf.o perf_cpum_sf.o
|
|
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf_events.o
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2015-08-21 14:05:32 +00:00
|
|
|
obj-$(CONFIG_TRACEPOINTS) += trace.o
|
|
|
|
|
2008-12-25 12:38:36 +00:00
|
|
|
# vdso
|
2015-02-12 12:08:27 +00:00
|
|
|
obj-y += vdso64/
|
2008-12-25 12:38:36 +00:00
|
|
|
obj-$(CONFIG_COMPAT) += vdso32/
|