blob: 74892ad032ba8af71b2df9d451ce188f75dc88ef [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the linux ppc64 kernel.
3#
4
Stephen Rothwellcabb5582005-09-30 16:16:52 +10005ifneq ($(CONFIG_PPC_MERGE),y)
Paul Mackerras40ef8cb2005-10-10 22:50:37 +10006
7EXTRA_CFLAGS += -mno-minimal-toc
Linus Torvalds1da177e2005-04-16 15:20:36 -07008extra-y := head.o vmlinux.lds
9
Stephen Rothwell640768e2005-10-28 12:51:45 +100010obj-y := misc.o prom.o
Stephen Rothwell49209602005-10-12 15:55:09 +100011
12endif
13
14obj-y += irq.o idle.o dma.o \
Paul Mackerrasf2783c12005-10-20 09:23:26 +100015 signal.o \
David Gibsona0e60b22005-11-01 17:28:10 +110016 align.o pacaData.o \
Paul Mackerras30286ef2005-10-17 20:10:13 +100017 udbg.o ioctl32.o \
Paul Mackerrasb1239232005-10-20 09:11:29 +100018 rtc.o \
Stephen Rothwell49209602005-10-12 15:55:09 +100019 cpu_setup_power4.o \
David Gibsonf7f6f4f2005-10-19 14:53:32 +100020 iommu.o sysfs.o vdso.o firmware.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070021obj-y += vdso32/ vdso64/
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o
24
25obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y)
26
Paul Mackerrasf9bd1702005-10-26 16:47:42 +100027obj-$(CONFIG_PPC_MULTIPLATFORM) += nvram.o
Stephen Rothwell49209602005-10-12 15:55:09 +100028ifneq ($(CONFIG_PPC_MERGE),y)
29obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o
30endif
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100031
Paul Mackerrasf4fcbbe2005-11-03 14:41:19 +110032obj-$(CONFIG_PPC_PSERIES) += udbg_16550.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100033
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100034obj-$(CONFIG_KEXEC) += machine_kexec.o
35obj-$(CONFIG_EEH) += eeh.o
36obj-$(CONFIG_PROC_FS) += proc_ppc64.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100037obj-$(CONFIG_SMP) += smp.o
38obj-$(CONFIG_MODULES) += module.o
Stephen Rothwell49209602005-10-12 15:55:09 +100039ifneq ($(CONFIG_PPC_MERGE),y)
40obj-$(CONFIG_MODULES) += ppc_ksyms.o
41endif
Paul Mackerras033ef332005-10-26 17:05:24 +100042obj-$(CONFIG_PPC_RTAS) += rtas_pci.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100043obj-$(CONFIG_SCANLOG) += scanlog.o
44obj-$(CONFIG_LPARCFG) += lparcfg.o
45obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o
Stephen Rothwell49209602005-10-12 15:55:09 +100046ifneq ($(CONFIG_PPC_MERGE),y)
47obj-$(CONFIG_BOOTX_TEXT) += btext.o
48endif
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100049obj-$(CONFIG_HVCS) += hvcserver.o
50
Paul Mackerras83428942005-10-22 16:06:27 +100051obj-$(CONFIG_PPC_PMAC) += udbg_scc.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100052
Paul Mackerras0cb7b2a2005-10-29 22:07:56 +100053obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100054
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100055ifdef CONFIG_SMP
Paul Mackerras83428942005-10-22 16:06:27 +100056obj-$(CONFIG_PPC_PMAC) += smp-tbsync.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100057obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o
58endif
59
60obj-$(CONFIG_KPROBES) += kprobes.o
61
62CFLAGS_ioctl32.o += -Ifs/
63
Stephen Rothwell49209602005-10-12 15:55:09 +100064ifneq ($(CONFIG_PPC_MERGE),y)
65ifeq ($(CONFIG_PPC_ISERIES),y)
66arch/ppc64/kernel/head.o: arch/powerpc/kernel/lparmap.s
67AFLAGS_head.o += -Iarch/powerpc/kernel
68endif
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100069endif