blob: 0657de7944fec2fdbd39aabf1b3d7c74519bc8f7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the linux kernel.
3#
4
Heiko Carstens5d360a72008-12-25 13:38:56 +01005ifdef CONFIG_FUNCTION_TRACER
6# Do not trace early boot code
7CFLAGS_REMOVE_early.o = -pg
8endif
9
Heiko Carstens98c7b382008-03-05 12:37:09 +010010#
11# Passing null pointers is ok for smp code, since we access the lowcore here.
12#
13CFLAGS_smp.o := -Wno-nonnull
14
Martin Schwidefsky63506c42008-07-14 09:58:54 +020015#
16# Pass UTS_MACHINE for user_regset definition
17#
18CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
19
Heiko Carstens94f5b092009-03-26 15:23:50 +010020CFLAGS_sysinfo.o += -Iinclude/math-emu -Iarch/s390/math-emu -w
21
Martin Schwidefsky395d31d2008-12-25 13:39:50 +010022obj-y := bitmap.o traps.o time.o process.o base.o early.o setup.o \
23 processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \
Martin Schwidefskyb0206322008-12-25 13:38:36 +010024 s390_ext.o debug.o irq.o ipl.o dis.o diag.o mem_detect.o \
Heiko Carstensd90cbd42009-06-12 10:26:24 +020025 vdso.o vtime.o sysinfo.o nmi.o sclp.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Martin Schwidefsky347a8dc2006-01-06 00:19:28 -080027obj-y += $(if $(CONFIG_64BIT),entry64.o,entry.o)
28obj-y += $(if $(CONFIG_64BIT),reipl64.o,reipl.o)
29
Heiko Carstens0ad775d2005-11-07 00:59:12 -080030extra-y += head.o init_task.o vmlinux.lds
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
32obj-$(CONFIG_MODULES) += s390_ksyms.o module.o
Heiko Carstensdbd70fb2008-04-17 07:46:12 +020033obj-$(CONFIG_SMP) += smp.o topology.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
Al Viroc0803792006-08-31 19:02:42 -040035obj-$(CONFIG_AUDIT) += audit.o
36compat-obj-$(CONFIG_AUDIT) += compat_audit.o
Martin Schwidefsky347a8dc2006-01-06 00:19:28 -080037obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \
Heiko Carstensf84dfe82006-07-10 04:45:39 -070038 compat_wrapper.o compat_exec_domain.o \
Martin Schwidefsky63506c42008-07-14 09:58:54 +020039 $(compat-obj-y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
Heiko Carstens5bdc9b42006-07-03 00:24:41 -070041obj-$(CONFIG_STACKTRACE) += stacktrace.o
Michael Grundy4ba069b2006-09-20 15:58:39 +020042obj-$(CONFIG_KPROBES) += kprobes.o
Heiko Carstens5d360a72008-12-25 13:38:56 +010043obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070044
Heiko Carstenscf13f0e2005-06-25 14:58:11 -070045# Kexec part
46S390_KEXEC_OBJS := machine_kexec.o crash.o
Martin Schwidefsky347a8dc2006-01-06 00:19:28 -080047S390_KEXEC_OBJS += $(if $(CONFIG_64BIT),relocate_kernel64.o,relocate_kernel.o)
Heiko Carstenscf13f0e2005-06-25 14:58:11 -070048obj-$(CONFIG_KEXEC) += $(S390_KEXEC_OBJS)
49
Martin Schwidefskyb0206322008-12-25 13:38:36 +010050# vdso
51obj-$(CONFIG_64BIT) += vdso64/
52obj-$(CONFIG_32BIT) += vdso32/
53obj-$(CONFIG_COMPAT) += vdso32/