blob: 863bd7d746fb156b6e5fd5387a54170528187a3d [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
Paul Mackerrasfda262b2005-10-27 20:20:42 +100010obj-y := entry.o 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 \
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100016 align.o bitops.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
Michael Ellermand9953102005-10-24 15:07:30 +100032obj-$(CONFIG_PPC_PSERIES) += rtasd.o udbg_16550.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100033
34obj-$(CONFIG_PPC_BPA) += bpa_setup.o bpa_iommu.o bpa_nvram.o \
35 bpa_iic.o spider-pic.o
36
37obj-$(CONFIG_KEXEC) += machine_kexec.o
38obj-$(CONFIG_EEH) += eeh.o
39obj-$(CONFIG_PROC_FS) += proc_ppc64.o
40obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o
41obj-$(CONFIG_SMP) += smp.o
42obj-$(CONFIG_MODULES) += module.o
Stephen Rothwell49209602005-10-12 15:55:09 +100043ifneq ($(CONFIG_PPC_MERGE),y)
44obj-$(CONFIG_MODULES) += ppc_ksyms.o
45endif
Paul Mackerras033ef332005-10-26 17:05:24 +100046obj-$(CONFIG_PPC_RTAS) += rtas_pci.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100047obj-$(CONFIG_RTAS_PROC) += rtas-proc.o
48obj-$(CONFIG_SCANLOG) += scanlog.o
49obj-$(CONFIG_LPARCFG) += lparcfg.o
50obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o
Stephen Rothwell49209602005-10-12 15:55:09 +100051ifneq ($(CONFIG_PPC_MERGE),y)
52obj-$(CONFIG_BOOTX_TEXT) += btext.o
53endif
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100054obj-$(CONFIG_HVCS) += hvcserver.o
55
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100056obj-$(CONFIG_XICS) += xics.o
Stephen Rothwell49209602005-10-12 15:55:09 +100057
Paul Mackerras83428942005-10-22 16:06:27 +100058obj-$(CONFIG_PPC_PMAC) += udbg_scc.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100059
60obj-$(CONFIG_PPC_MAPLE) += maple_setup.o maple_pci.o maple_time.o \
61 udbg_16550.o
62
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100063ifdef CONFIG_SMP
Paul Mackerras83428942005-10-22 16:06:27 +100064obj-$(CONFIG_PPC_PMAC) += smp-tbsync.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100065obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o
66endif
67
68obj-$(CONFIG_KPROBES) += kprobes.o
69
70CFLAGS_ioctl32.o += -Ifs/
71
Stephen Rothwell49209602005-10-12 15:55:09 +100072ifneq ($(CONFIG_PPC_MERGE),y)
73ifeq ($(CONFIG_PPC_ISERIES),y)
74arch/ppc64/kernel/head.o: arch/powerpc/kernel/lparmap.s
75AFLAGS_head.o += -Iarch/powerpc/kernel
76endif
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100077endif