Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the linux kernel. |
| 3 | # |
| 4 | |
Heiko Carstens | 5d360a7 | 2008-12-25 13:38:56 +0100 | [diff] [blame] | 5 | ifdef CONFIG_FUNCTION_TRACER |
| 6 | # Do not trace early boot code |
| 7 | CFLAGS_REMOVE_early.o = -pg |
| 8 | endif |
| 9 | |
Heiko Carstens | 98c7b38 | 2008-03-05 12:37:09 +0100 | [diff] [blame] | 10 | # |
| 11 | # Passing null pointers is ok for smp code, since we access the lowcore here. |
| 12 | # |
| 13 | CFLAGS_smp.o := -Wno-nonnull |
| 14 | |
Martin Schwidefsky | 63506c4 | 2008-07-14 09:58:54 +0200 | [diff] [blame] | 15 | # |
| 16 | # Pass UTS_MACHINE for user_regset definition |
| 17 | # |
| 18 | CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' |
| 19 | |
Heiko Carstens | 94f5b09 | 2009-03-26 15:23:50 +0100 | [diff] [blame] | 20 | CFLAGS_sysinfo.o += -Iinclude/math-emu -Iarch/s390/math-emu -w |
| 21 | |
Martin Schwidefsky | 395d31d | 2008-12-25 13:39:50 +0100 | [diff] [blame] | 22 | obj-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 Schwidefsky | b020632 | 2008-12-25 13:38:36 +0100 | [diff] [blame] | 24 | s390_ext.o debug.o irq.o ipl.o dis.o diag.o mem_detect.o \ |
Heiko Carstens | d90cbd4 | 2009-06-12 10:26:24 +0200 | [diff] [blame^] | 25 | vdso.o vtime.o sysinfo.o nmi.o sclp.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | |
Martin Schwidefsky | 347a8dc | 2006-01-06 00:19:28 -0800 | [diff] [blame] | 27 | obj-y += $(if $(CONFIG_64BIT),entry64.o,entry.o) |
| 28 | obj-y += $(if $(CONFIG_64BIT),reipl64.o,reipl.o) |
| 29 | |
Heiko Carstens | 0ad775d | 2005-11-07 00:59:12 -0800 | [diff] [blame] | 30 | extra-y += head.o init_task.o vmlinux.lds |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | |
| 32 | obj-$(CONFIG_MODULES) += s390_ksyms.o module.o |
Heiko Carstens | dbd70fb | 2008-04-17 07:46:12 +0200 | [diff] [blame] | 33 | obj-$(CONFIG_SMP) += smp.o topology.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | |
Al Viro | c080379 | 2006-08-31 19:02:42 -0400 | [diff] [blame] | 35 | obj-$(CONFIG_AUDIT) += audit.o |
| 36 | compat-obj-$(CONFIG_AUDIT) += compat_audit.o |
Martin Schwidefsky | 347a8dc | 2006-01-06 00:19:28 -0800 | [diff] [blame] | 37 | obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \ |
Heiko Carstens | f84dfe8 | 2006-07-10 04:45:39 -0700 | [diff] [blame] | 38 | compat_wrapper.o compat_exec_domain.o \ |
Martin Schwidefsky | 63506c4 | 2008-07-14 09:58:54 +0200 | [diff] [blame] | 39 | $(compat-obj-y) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | |
Heiko Carstens | 5bdc9b4 | 2006-07-03 00:24:41 -0700 | [diff] [blame] | 41 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
Michael Grundy | 4ba069b | 2006-09-20 15:58:39 +0200 | [diff] [blame] | 42 | obj-$(CONFIG_KPROBES) += kprobes.o |
Heiko Carstens | 5d360a7 | 2008-12-25 13:38:56 +0100 | [diff] [blame] | 43 | obj-$(CONFIG_FUNCTION_TRACER) += mcount.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
Heiko Carstens | cf13f0e | 2005-06-25 14:58:11 -0700 | [diff] [blame] | 45 | # Kexec part |
| 46 | S390_KEXEC_OBJS := machine_kexec.o crash.o |
Martin Schwidefsky | 347a8dc | 2006-01-06 00:19:28 -0800 | [diff] [blame] | 47 | S390_KEXEC_OBJS += $(if $(CONFIG_64BIT),relocate_kernel64.o,relocate_kernel.o) |
Heiko Carstens | cf13f0e | 2005-06-25 14:58:11 -0700 | [diff] [blame] | 48 | obj-$(CONFIG_KEXEC) += $(S390_KEXEC_OBJS) |
| 49 | |
Martin Schwidefsky | b020632 | 2008-12-25 13:38:36 +0100 | [diff] [blame] | 50 | # vdso |
| 51 | obj-$(CONFIG_64BIT) += vdso64/ |
| 52 | obj-$(CONFIG_32BIT) += vdso32/ |
| 53 | obj-$(CONFIG_COMPAT) += vdso32/ |