Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # |
2 | # Makefile for the linux kernel. | |
3 | # | |
4 | ||
5d360a75 HC |
5 | ifdef CONFIG_FUNCTION_TRACER |
6 | # Do not trace early boot code | |
7 | CFLAGS_REMOVE_early.o = -pg | |
8 | endif | |
9 | ||
98c7b388 HC |
10 | # |
11 | # Passing null pointers is ok for smp code, since we access the lowcore here. | |
12 | # | |
13 | CFLAGS_smp.o := -Wno-nonnull | |
14 | ||
63506c41 MS |
15 | # |
16 | # Pass UTS_MACHINE for user_regset definition | |
17 | # | |
18 | CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' | |
19 | ||
395d31d4 MS |
20 | obj-y := bitmap.o traps.o time.o process.o base.o early.o setup.o \ |
21 | processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \ | |
b020632e | 22 | s390_ext.o debug.o irq.o ipl.o dis.o diag.o mem_detect.o \ |
c185b783 | 23 | vdso.o vtime.o |
1da177e4 | 24 | |
347a8dc3 MS |
25 | obj-y += $(if $(CONFIG_64BIT),entry64.o,entry.o) |
26 | obj-y += $(if $(CONFIG_64BIT),reipl64.o,reipl.o) | |
27 | ||
0ad775db | 28 | extra-y += head.o init_task.o vmlinux.lds |
1da177e4 LT |
29 | |
30 | obj-$(CONFIG_MODULES) += s390_ksyms.o module.o | |
dbd70fb4 | 31 | obj-$(CONFIG_SMP) += smp.o topology.o |
1da177e4 | 32 | |
c0803799 AV |
33 | obj-$(CONFIG_AUDIT) += audit.o |
34 | compat-obj-$(CONFIG_AUDIT) += compat_audit.o | |
347a8dc3 | 35 | obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \ |
f84dfe82 | 36 | compat_wrapper.o compat_exec_domain.o \ |
63506c41 | 37 | $(compat-obj-y) |
1da177e4 | 38 | |
5bdc9b44 | 39 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
4ba069b8 | 40 | obj-$(CONFIG_KPROBES) += kprobes.o |
5d360a75 | 41 | obj-$(CONFIG_FUNCTION_TRACER) += mcount.o |
1da177e4 | 42 | |
cf13f0ea HC |
43 | # Kexec part |
44 | S390_KEXEC_OBJS := machine_kexec.o crash.o | |
347a8dc3 | 45 | S390_KEXEC_OBJS += $(if $(CONFIG_64BIT),relocate_kernel64.o,relocate_kernel.o) |
cf13f0ea HC |
46 | obj-$(CONFIG_KEXEC) += $(S390_KEXEC_OBJS) |
47 | ||
b020632e MS |
48 | # vdso |
49 | obj-$(CONFIG_64BIT) += vdso64/ | |
50 | obj-$(CONFIG_32BIT) += vdso32/ | |
51 | obj-$(CONFIG_COMPAT) += vdso32/ |