2005-04-17 02:20:36 +04:00
#
# Makefile for the linux kernel.
#
2008-12-25 15:38:56 +03:00
i f d e f C O N F I G _ F U N C T I O N _ T R A C E R
2009-06-12 12:26:46 +04:00
# Don't trace early setup code and tracing code
2015-01-09 15:08:28 +03:00
CFLAGS_REMOVE_early.o = $( CC_FLAGS_FTRACE)
CFLAGS_REMOVE_ftrace.o = $( CC_FLAGS_FTRACE)
2009-06-12 12:26:44 +04:00
e n d i f
2008-03-05 14:37:09 +03:00
#
# Passing null pointers is ok for smp code, since we access the lowcore here.
#
CFLAGS_smp.o := -Wno-nonnull
2013-03-14 16:44:25 +04: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 11:58:54 +04:00
#
# Pass UTS_MACHINE for user_regset definition
#
CFLAGS_ptrace.o += -DUTS_MACHINE= '"$(UTS_MACHINE)"'
2015-02-12 15:08:27 +03:00
CFLAGS_sysinfo.o += -w
2009-03-26 17:23:50 +03:00
2015-07-08 11:20:04 +03:00
#
# Use -march=z900 for sclp.c to be able to print an error message if
# the kernel is started on a machine which is too old
#
CFLAGS_REMOVE_sclp.o = $( CC_FLAGS_FTRACE)
i f n e q ( $( CC_FLAGS_MARCH ) , -march = z900)
CFLAGS_REMOVE_sclp.o += $( CC_FLAGS_MARCH)
CFLAGS_sclp.o += -march= z900
e n d i f
GCOV_PROFILE_sclp.o := n
2014-10-01 12:57:57 +04:00
obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o
2013-03-14 16:44:25 +04:00
obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o
2013-04-26 18:47:28 +04:00
obj-y += debug.o irq.o ipl.o dis.o diag.o sclp.o vdso.o
2013-03-14 16:44:25 +04:00
obj-y += sysinfo.o jump_label.o lgr.o os_info.o machine_kexec.o pgm_check.o
2015-02-12 15:08:27 +03:00
obj-y += runtime_instr.o cache.o dumpstack.o
2015-02-13 15:04:39 +03:00
obj-y += entry.o reipl.o relocate_kernel.o
2005-04-17 02:20:36 +04:00
2015-02-12 15:08:27 +03:00
extra-y += head.o head64.o vmlinux.lds
2005-04-17 02:20:36 +04:00
obj-$(CONFIG_MODULES) += s390_ksyms.o module.o
2011-12-27 14:27:09 +04:00
obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_SCHED_BOOK) += topology.o
2015-03-24 10:10:53 +03:00
obj-$(CONFIG_HIBERNATION) += suspend.o swsusp.o
2006-09-01 03:02:42 +04:00
obj-$(CONFIG_AUDIT) += audit.o
compat-obj-$(CONFIG_AUDIT) += compat_audit.o
2014-03-06 14:24:41 +04:00
obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o
obj-$(CONFIG_COMPAT) += compat_wrapper.o $( compat-obj-y)
2005-04-17 02:20:36 +04:00
2006-07-03 11:24:41 +04:00
obj-$(CONFIG_STACKTRACE) += stacktrace.o
2006-09-20 17:58:39 +04:00
obj-$(CONFIG_KPROBES) += kprobes.o
2014-10-07 17:45:10 +04:00
obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
2011-10-30 18:16:40 +04:00
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
2014-09-22 18:39:06 +04:00
obj-$(CONFIG_UPROBES) += uprobes.o
2012-09-14 14:57:39 +04:00
2015-02-12 15:08:27 +03: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-17 02:20:36 +04:00
2008-12-25 15:38:36 +03:00
# vdso
2015-02-12 15:08:27 +03:00
obj-y += vdso64/
2008-12-25 15:38:36 +03:00
obj-$(CONFIG_COMPAT) += vdso32/