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 |
Heiko Carstens | 88dbd20 | 2009-06-12 10:26:46 +0200 | [diff] [blame] | 6 | # Don't trace early setup code and tracing code |
Heiko Carstens | 5d360a7 | 2008-12-25 13:38:56 +0100 | [diff] [blame] | 7 | CFLAGS_REMOVE_early.o = -pg |
Heiko Carstens | dfd9f7a | 2009-06-12 10:26:44 +0200 | [diff] [blame] | 8 | CFLAGS_REMOVE_ftrace.o = -pg |
| 9 | endif |
| 10 | |
Heiko Carstens | 98c7b38 | 2008-03-05 12:37:09 +0100 | [diff] [blame] | 11 | # |
| 12 | # Passing null pointers is ok for smp code, since we access the lowcore here. |
| 13 | # |
| 14 | CFLAGS_smp.o := -Wno-nonnull |
| 15 | |
Martin Schwidefsky | 63506c4 | 2008-07-14 09:58:54 +0200 | [diff] [blame] | 16 | # |
| 17 | # Pass UTS_MACHINE for user_regset definition |
| 18 | # |
| 19 | CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' |
| 20 | |
Heiko Carstens | 94f5b09 | 2009-03-26 15:23:50 +0100 | [diff] [blame] | 21 | CFLAGS_sysinfo.o += -Iinclude/math-emu -Iarch/s390/math-emu -w |
| 22 | |
Martin Schwidefsky | 395d31d | 2008-12-25 13:39:50 +0100 | [diff] [blame] | 23 | obj-y := bitmap.o traps.o time.o process.o base.o early.o setup.o \ |
| 24 | 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] | 25 | 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] | 26 | vdso.o vtime.o sysinfo.o nmi.o sclp.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
Martin Schwidefsky | 347a8dc | 2006-01-06 00:19:28 -0800 | [diff] [blame] | 28 | obj-y += $(if $(CONFIG_64BIT),entry64.o,entry.o) |
| 29 | obj-y += $(if $(CONFIG_64BIT),reipl64.o,reipl.o) |
| 30 | |
Heiko Carstens | 0ad775d | 2005-11-07 00:59:12 -0800 | [diff] [blame] | 31 | extra-y += head.o init_task.o vmlinux.lds |
Martin Schwidefsky | 1844c9b | 2010-02-26 22:37:53 +0100 | [diff] [blame] | 32 | extra-y += $(if $(CONFIG_64BIT),head64.o,head31.o) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
| 34 | obj-$(CONFIG_MODULES) += s390_ksyms.o module.o |
Heiko Carstens | dbd70fb | 2008-04-17 07:46:12 +0200 | [diff] [blame] | 35 | obj-$(CONFIG_SMP) += smp.o topology.o |
Heiko Carstens | 2c2df11 | 2010-02-26 22:37:34 +0100 | [diff] [blame] | 36 | obj-$(CONFIG_SMP) += $(if $(CONFIG_64BIT),switch_cpu64.o, \ |
| 37 | switch_cpu.o) |
Heiko Carstens | c48ff64 | 2009-09-11 10:28:37 +0200 | [diff] [blame] | 38 | obj-$(CONFIG_HIBERNATION) += suspend.o swsusp_asm64.o |
Al Viro | c080379 | 2006-08-31 19:02:42 -0400 | [diff] [blame] | 39 | obj-$(CONFIG_AUDIT) += audit.o |
| 40 | compat-obj-$(CONFIG_AUDIT) += compat_audit.o |
Martin Schwidefsky | 347a8dc | 2006-01-06 00:19:28 -0800 | [diff] [blame] | 41 | obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \ |
Heiko Carstens | f84dfe8 | 2006-07-10 04:45:39 -0700 | [diff] [blame] | 42 | compat_wrapper.o compat_exec_domain.o \ |
Martin Schwidefsky | 63506c4 | 2008-07-14 09:58:54 +0200 | [diff] [blame] | 43 | $(compat-obj-y) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
Heiko Carstens | 5bdc9b4 | 2006-07-03 00:24:41 -0700 | [diff] [blame] | 45 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
Michael Grundy | 4ba069b | 2006-09-20 15:58:39 +0200 | [diff] [blame] | 46 | obj-$(CONFIG_KPROBES) += kprobes.o |
Martin Schwidefsky | 6ac2a4d | 2009-09-11 10:28:33 +0200 | [diff] [blame] | 47 | obj-$(CONFIG_FUNCTION_TRACER) += $(if $(CONFIG_64BIT),mcount64.o,mcount.o) |
Heiko Carstens | dfd9f7a | 2009-06-12 10:26:44 +0200 | [diff] [blame] | 48 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o |
Heiko Carstens | 88dbd20 | 2009-06-12 10:26:46 +0200 | [diff] [blame] | 49 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o |
Aristeu Rozanski | b069468 | 2009-12-07 12:52:15 +0100 | [diff] [blame] | 50 | obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | |
Heiko Carstens | cf13f0e | 2005-06-25 14:58:11 -0700 | [diff] [blame] | 52 | # Kexec part |
| 53 | S390_KEXEC_OBJS := machine_kexec.o crash.o |
Martin Schwidefsky | 347a8dc | 2006-01-06 00:19:28 -0800 | [diff] [blame] | 54 | S390_KEXEC_OBJS += $(if $(CONFIG_64BIT),relocate_kernel64.o,relocate_kernel.o) |
Heiko Carstens | cf13f0e | 2005-06-25 14:58:11 -0700 | [diff] [blame] | 55 | obj-$(CONFIG_KEXEC) += $(S390_KEXEC_OBJS) |
| 56 | |
Martin Schwidefsky | b020632 | 2008-12-25 13:38:36 +0100 | [diff] [blame] | 57 | # vdso |
| 58 | obj-$(CONFIG_64BIT) += vdso64/ |
| 59 | obj-$(CONFIG_32BIT) += vdso32/ |
| 60 | obj-$(CONFIG_COMPAT) += vdso32/ |