Commit | Line | Data |
---|---|---|
14cf11af PM |
1 | # |
2 | # Makefile for the linux kernel. | |
3 | # | |
4 | ||
80fdf470 RM |
5 | CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' |
6 | ||
bd142b70 | 7 | ifeq ($(CONFIG_PPC64),y) |
08a644ec | 8 | CFLAGS_prom_init.o += -mno-minimal-toc |
bd142b70 | 9 | endif |
cabb5587 | 10 | ifeq ($(CONFIG_PPC32),y) |
9b6b563c | 11 | CFLAGS_prom_init.o += -fPIC |
b3491269 | 12 | CFLAGS_btext.o += -fPIC |
cabb5587 | 13 | endif |
9b6b563c | 14 | |
4e491d14 SR |
15 | ifdef CONFIG_FTRACE |
16 | # Do not trace early boot code | |
7563dc64 TB |
17 | CFLAGS_REMOVE_cputable.o = -pg -mno-sched-epilog |
18 | CFLAGS_REMOVE_prom_init.o = -pg -mno-sched-epilog | |
19 | CFLAGS_REMOVE_btext.o = -pg -mno-sched-epilog | |
4e491d14 SR |
20 | |
21 | ifdef CONFIG_DYNAMIC_FTRACE | |
22 | # dynamic ftrace setup. | |
7563dc64 | 23 | CFLAGS_REMOVE_ftrace.o = -pg -mno-sched-epilog |
4e491d14 SR |
24 | endif |
25 | ||
26 | endif | |
27 | ||
64ac24e7 | 28 | obj-y := cputable.o ptrace.o syscalls.o \ |
624cee31 | 29 | irq.o align.o signal_32.o pmc.o vdso.o \ |
22e38f29 | 30 | init_task.o process.o systbl.o idle.o \ |
b950bdd0 | 31 | signal.o sysfs.o |
a7f290da | 32 | obj-y += vdso32/ |
01e31dba | 33 | obj-$(CONFIG_PPC64) += setup_64.o sys_ppc32.o \ |
8568daa4 | 34 | signal_64.o ptrace32.o \ |
2e974251 | 35 | paca.o cpu_setup_ppc970.o \ |
1199919b | 36 | cpu_setup_pa6t.o \ |
b950bdd0 | 37 | firmware.o nvram_64.o |
a7f290da | 38 | obj-$(CONFIG_PPC64) += vdso64/ |
40ef8cbc | 39 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
f39224a8 | 40 | obj-$(CONFIG_PPC_970_NAP) += idle_power4.o |
7eebde70 | 41 | obj-$(CONFIG_PPC_OF) += of_device.o of_platform.o prom_parse.o |
6f668280 | 42 | obj-$(CONFIG_PPC_CLOCK) += clock.o |
d3d2176a DG |
43 | procfs-$(CONFIG_PPC64) := proc_ppc64.o |
44 | obj-$(CONFIG_PROC_FS) += $(procfs-y) | |
bed59275 SR |
45 | rtaspci-$(CONFIG_PPC64)-$(CONFIG_PCI) := rtas_pci.o |
46 | obj-$(CONFIG_PPC_RTAS) += rtas.o rtas-rtc.o $(rtaspci-y-y) | |
f4fcbbe9 PM |
47 | obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o |
48 | obj-$(CONFIG_RTAS_PROC) += rtas-proc.o | |
d3d2176a | 49 | obj-$(CONFIG_LPARCFG) += lparcfg.o |
58046019 | 50 | obj-$(CONFIG_IBMVIO) += vio.o |
d7a30103 | 51 | obj-$(CONFIG_IBMEBUS) += ibmebus.o |
8ad200d7 | 52 | obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o |
0cc4746c | 53 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
fc4033b2 | 54 | obj-$(CONFIG_E500) += idle_e500.o |
9b781727 PM |
55 | obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o |
56 | obj-$(CONFIG_TAU) += tau_6xx.o | |
2578bfae SR |
57 | obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o \ |
58 | swsusp_$(CONFIG_WORD_SIZE).o | |
59 | obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o | |
f0c426bc | 60 | obj-$(CONFIG_MODULES) += module.o module_$(CONFIG_WORD_SIZE).o |
26f571d7 | 61 | obj-$(CONFIG_44x) += cpu_setup_44x.o |
40ef8cbc | 62 | |
70d64cea | 63 | extra-$(CONFIG_PPC_STD_MMU) := head_32.o |
cabb5587 | 64 | extra-$(CONFIG_PPC64) := head_64.o |
15f6527e | 65 | extra-$(CONFIG_40x) := head_40x.o |
14cf11af PM |
66 | extra-$(CONFIG_44x) := head_44x.o |
67 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o | |
68 | extra-$(CONFIG_8xx) := head_8xx.o | |
14cf11af PM |
69 | extra-y += vmlinux.lds |
70 | ||
127efeb2 | 71 | obj-y += time.o prom.o traps.o setup-common.o \ |
2578bfae SR |
72 | udbg.o misc.o io.o \ |
73 | misc_$(CONFIG_WORD_SIZE).o | |
74 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o | |
75 | obj-$(CONFIG_PPC64) += dma_64.o iommu.o | |
17ce452f | 76 | obj-$(CONFIG_KGDB) += kgdb.o |
be42d5fa | 77 | obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o |
20c8c210 | 78 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
9b6b563c | 79 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
5ad57078 | 80 | obj-$(CONFIG_SMP) += smp.o |
7568cb4e | 81 | obj-$(CONFIG_KPROBES) += kprobes.o |
13b8a272 | 82 | obj-$(CONFIG_PPC_UDBG_16550) += legacy_serial.o udbg_16550.o |
fd3e0bbc | 83 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
4c75a6f4 | 84 | |
2578bfae SR |
85 | pci64-$(CONFIG_PPC64) += pci_dn.o isa-bridge.o |
86 | obj-$(CONFIG_PCI) += pci_$(CONFIG_WORD_SIZE).o $(pci64-y) \ | |
87 | pci-common.o | |
df87ef55 | 88 | obj-$(CONFIG_PCI_MSI) += msi.o |
2578bfae SR |
89 | obj-$(CONFIG_KEXEC) += machine_kexec.o crash.o \ |
90 | machine_kexec_$(CONFIG_WORD_SIZE).o | |
c0803799 AV |
91 | obj-$(CONFIG_AUDIT) += audit.o |
92 | obj64-$(CONFIG_AUDIT) += compat_audit.o | |
cabb5587 | 93 | |
4e491d14 SR |
94 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o |
95 | ||
5dd57a13 SW |
96 | obj-$(CONFIG_8XX_MINIMAL_FPEMU) += softemu8xx.o |
97 | ||
4cb3cee0 | 98 | ifneq ($(CONFIG_PPC_INDIRECT_IO),y) |
68a64357 | 99 | obj-y += iomap.o |
4cb3cee0 BH |
100 | endif |
101 | ||
437a58db PM |
102 | obj-$(CONFIG_PPC64) += $(obj64-y) |
103 | ||
25c8a78b | 104 | extra-$(CONFIG_PPC_FPU) += fpu.o |
640768ee | 105 | extra-$(CONFIG_PPC64) += entry_64.o |
0a4690cf SR |
106 | |
107 | extra-y += systbl_chk.i | |
108 | $(obj)/systbl.o: systbl_chk | |
109 | ||
110 | quiet_cmd_systbl_chk = CALL $< | |
111 | cmd_systbl_chk = $(CONFIG_SHELL) $< $(obj)/systbl_chk.i | |
112 | ||
113 | PHONY += systbl_chk | |
114 | systbl_chk: $(src)/systbl_chk.sh $(obj)/systbl_chk.i | |
115 | $(call cmd,systbl_chk) | |
e4ccde02 | 116 | |
5c02cd2f ME |
117 | $(obj)/built-in.o: prom_init_check |
118 | ||
119 | quiet_cmd_prom_init_check = CALL $< | |
120 | cmd_prom_init_check = $(CONFIG_SHELL) $< "$(NM)" "$(obj)/prom_init.o" | |
121 | ||
122 | PHONY += prom_init_check | |
123 | prom_init_check: $(src)/prom_init_check.sh $(obj)/prom_init.o | |
124 | $(call cmd,prom_init_check) | |
125 | ||
e4ccde02 | 126 | clean-files := vmlinux.lds |