Commit | Line | Data |
---|---|---|
14cf11af PM |
1 | # |
2 | # Makefile for the linux kernel. | |
3 | # | |
4 | ||
bd142b70 SR |
5 | ifeq ($(CONFIG_PPC64),y) |
6 | EXTRA_CFLAGS += -mno-minimal-toc | |
8882a4da | 7 | CFLAGS_ioctl32.o += -Ifs/ |
bd142b70 | 8 | endif |
cabb5587 | 9 | ifeq ($(CONFIG_PPC32),y) |
9b6b563c | 10 | CFLAGS_prom_init.o += -fPIC |
b3491269 | 11 | CFLAGS_btext.o += -fPIC |
cabb5587 | 12 | endif |
9b6b563c | 13 | |
77f543cb | 14 | obj-y := semaphore.o cputable.o ptrace.o syscalls.o \ |
756e7104 | 15 | irq.o signal_32.o pmc.o |
fda262b8 | 16 | obj-$(CONFIG_PPC64) += setup_64.o binfmt_elf32.o sys_ppc32.o \ |
8882a4da DG |
17 | signal_64.o ptrace32.o systbl.o \ |
18 | paca.o ioctl32.o cpu_setup_power4.o \ | |
35cd8785 | 19 | firmware.o sysfs.o udbg.o |
40ef8cbc PM |
20 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
21 | obj-$(CONFIG_POWER4) += idle_power4.o | |
eec5ef90 | 22 | obj-$(CONFIG_PPC_OF) += of_device.o |
d3d2176a DG |
23 | procfs-$(CONFIG_PPC64) := proc_ppc64.o |
24 | obj-$(CONFIG_PROC_FS) += $(procfs-y) | |
25 | rtaspci-$(CONFIG_PPC64) := rtas_pci.o | |
26 | obj-$(CONFIG_PPC_RTAS) += rtas.o $(rtaspci-y) | |
f4fcbbe9 PM |
27 | obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o |
28 | obj-$(CONFIG_RTAS_PROC) += rtas-proc.o | |
d3d2176a | 29 | obj-$(CONFIG_LPARCFG) += lparcfg.o |
58046019 | 30 | obj-$(CONFIG_IBMVIO) += vio.o |
8ad200d7 | 31 | obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o |
35cd8785 DG |
32 | obj-$(CONFIG_PPC_PSERIES) += udbg_16550.o |
33 | obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o | |
34 | udbgscc-$(CONFIG_PPC64) := udbg_scc.o | |
35 | obj-$(CONFIG_PPC_PMAC) += $(udbgscc-y) | |
40ef8cbc PM |
36 | |
37 | ifeq ($(CONFIG_PPC_MERGE),y) | |
38 | ||
70d64cea | 39 | extra-$(CONFIG_PPC_STD_MMU) := head_32.o |
cabb5587 | 40 | extra-$(CONFIG_PPC64) := head_64.o |
14cf11af PM |
41 | extra-$(CONFIG_40x) := head_4xx.o |
42 | extra-$(CONFIG_44x) := head_44x.o | |
43 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o | |
44 | extra-$(CONFIG_8xx) := head_8xx.o | |
14cf11af PM |
45 | extra-y += vmlinux.lds |
46 | ||
f2783c15 | 47 | obj-y += process.o init_task.o time.o \ |
640768ee | 48 | prom.o traps.o setup-common.o |
22b28032 | 49 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o misc_32.o systbl.o |
fda262b8 | 50 | obj-$(CONFIG_PPC64) += misc_64.o |
eec5ef90 | 51 | obj-$(CONFIG_PPC_OF) += prom_init.o |
20c8c210 | 52 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
9b6b563c | 53 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
e6b4fe92 | 54 | obj-$(CONFIG_6xx) += idle_6xx.o |
5ad57078 | 55 | obj-$(CONFIG_SMP) += smp.o |
cabb5587 SR |
56 | |
57 | ifeq ($(CONFIG_PPC_ISERIES),y) | |
bc6f8a4b PM |
58 | $(obj)/head_64.o: $(obj)/lparmap.s |
59 | AFLAGS_head_64.o += -I$(obj) | |
60 | endif | |
fd582ec8 PM |
61 | |
62 | else | |
63 | # stuff used from here for ARCH=ppc or ARCH=ppc64 | |
5ad57078 | 64 | smpobj-$(CONFIG_SMP) += smp.o |
9675c7eb | 65 | obj-$(CONFIG_PPC64) += traps.o process.o init_task.o time.o \ |
5ad57078 | 66 | setup-common.o $(smpobj-y) |
fd582ec8 | 67 | |
fd582ec8 | 68 | |
cabb5587 | 69 | endif |
25c8a78b DG |
70 | |
71 | extra-$(CONFIG_PPC_FPU) += fpu.o | |
640768ee | 72 | extra-$(CONFIG_PPC64) += entry_64.o |