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