2005-04-16 15:20:36 -07:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2008-12-25 13:38:56 +01:00
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
2009-06-12 10:26:46 +02:00
|
|
|
# Don't trace early setup code and tracing code
|
2008-12-25 13:38:56 +01:00
|
|
|
CFLAGS_REMOVE_early.o = -pg
|
2009-06-12 10:26:44 +02:00
|
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
|
|
|
endif
|
|
|
|
|
2008-03-05 12:37:09 +01:00
|
|
|
#
|
|
|
|
# Passing null pointers is ok for smp code, since we access the lowcore here.
|
|
|
|
#
|
|
|
|
CFLAGS_smp.o := -Wno-nonnull
|
|
|
|
|
2013-03-14 13:44:25 +01: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 09:58:54 +02:00
|
|
|
#
|
|
|
|
# Pass UTS_MACHINE for user_regset definition
|
|
|
|
#
|
|
|
|
CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
|
|
|
|
|
2009-03-26 15:23:50 +01:00
|
|
|
CFLAGS_sysinfo.o += -Iinclude/math-emu -Iarch/s390/math-emu -w
|
|
|
|
|
2013-03-14 13:44:25 +01:00
|
|
|
obj-y := bitmap.o traps.o time.o process.o base.o early.o setup.o vtime.o
|
|
|
|
obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o
|
2013-04-26 16:47:28 +02:00
|
|
|
obj-y += debug.o irq.o ipl.o dis.o diag.o sclp.o vdso.o
|
2013-03-14 13:44:25 +01:00
|
|
|
obj-y += sysinfo.o jump_label.o lgr.o os_info.o machine_kexec.o pgm_check.o
|
|
|
|
obj-y += dumpstack.o
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-01-06 00:19:28 -08:00
|
|
|
obj-y += $(if $(CONFIG_64BIT),entry64.o,entry.o)
|
|
|
|
obj-y += $(if $(CONFIG_64BIT),reipl64.o,reipl.o)
|
2012-09-17 06:24:58 +02:00
|
|
|
obj-y += $(if $(CONFIG_64BIT),relocate_kernel64.o,relocate_kernel.o)
|
2006-01-06 00:19:28 -08:00
|
|
|
|
2012-05-03 09:02:58 +00:00
|
|
|
extra-y += head.o vmlinux.lds
|
2010-02-26 22:37:53 +01:00
|
|
|
extra-y += $(if $(CONFIG_64BIT),head64.o,head31.o)
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
obj-$(CONFIG_MODULES) += s390_ksyms.o module.o
|
2011-12-27 11:27:09 +01:00
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
|
|
obj-$(CONFIG_SCHED_BOOK) += topology.o
|
2009-09-11 10:28:37 +02:00
|
|
|
obj-$(CONFIG_HIBERNATION) += suspend.o swsusp_asm64.o
|
2006-08-31 19:02:42 -04:00
|
|
|
obj-$(CONFIG_AUDIT) += audit.o
|
|
|
|
compat-obj-$(CONFIG_AUDIT) += compat_audit.o
|
2006-01-06 00:19:28 -08:00
|
|
|
obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \
|
2006-07-10 04:45:39 -07:00
|
|
|
compat_wrapper.o compat_exec_domain.o \
|
2008-07-14 09:58:54 +02:00
|
|
|
$(compat-obj-y)
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-07-03 00:24:41 -07:00
|
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
2006-09-20 15:58:39 +02:00
|
|
|
obj-$(CONFIG_KPROBES) += kprobes.o
|
2009-09-11 10:28:33 +02:00
|
|
|
obj-$(CONFIG_FUNCTION_TRACER) += $(if $(CONFIG_64BIT),mcount64.o,mcount.o)
|
2009-06-12 10:26:44 +02:00
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
|
2009-06-12 10:26:46 +02:00
|
|
|
obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
|
2009-12-07 12:52:15 +01:00
|
|
|
obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
|
2011-10-30 15:16:40 +01:00
|
|
|
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
|
2012-09-14 12:57:39 +02:00
|
|
|
|
|
|
|
ifdef CONFIG_64BIT
|
2012-03-23 11:13:06 +01:00
|
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf.o
|
2012-09-14 12:57:39 +02:00
|
|
|
obj-y += runtime_instr.o cache.o
|
|
|
|
endif
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-12-25 13:38:36 +01:00
|
|
|
# vdso
|
|
|
|
obj-$(CONFIG_64BIT) += vdso64/
|
|
|
|
obj-$(CONFIG_32BIT) += vdso32/
|
|
|
|
obj-$(CONFIG_COMPAT) += vdso32/
|