blob: 58b19f1076568c85ae7cc17d903b7db4050b72a5 [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
Stephen Rothwell756e7102005-11-09 18:07:45 +110014obj-y += idle.o dma.o \
David Gibson8882a4d2005-11-09 13:38:01 +110015 align.o \
16 udbg.o \
Paul Mackerrasb1239232005-10-20 09:11:29 +100017 rtc.o \
David Gibsond3d21762005-11-10 15:26:20 +110018 iommu.o vdso.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070019obj-y += vdso32/ vdso64/
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o
22
23obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y)
24
Paul Mackerrasf9bd1702005-10-26 16:47:42 +100025obj-$(CONFIG_PPC_MULTIPLATFORM) += nvram.o
Stephen Rothwell49209602005-10-12 15:55:09 +100026ifneq ($(CONFIG_PPC_MERGE),y)
27obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o
28endif
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100029
Paul Mackerrasf4fcbbe2005-11-03 14:41:19 +110030obj-$(CONFIG_PPC_PSERIES) += udbg_16550.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100031
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100032obj-$(CONFIG_KEXEC) += machine_kexec.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100033obj-$(CONFIG_MODULES) += module.o
Stephen Rothwell49209602005-10-12 15:55:09 +100034ifneq ($(CONFIG_PPC_MERGE),y)
35obj-$(CONFIG_MODULES) += ppc_ksyms.o
36endif
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100037obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o
Stephen Rothwell49209602005-10-12 15:55:09 +100038ifneq ($(CONFIG_PPC_MERGE),y)
39obj-$(CONFIG_BOOTX_TEXT) += btext.o
40endif
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100041obj-$(CONFIG_HVCS) += hvcserver.o
42
Paul Mackerras83428942005-10-22 16:06:27 +100043obj-$(CONFIG_PPC_PMAC) += udbg_scc.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100044
Paul Mackerras0cb7b2a2005-10-29 22:07:56 +100045obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100046
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100047obj-$(CONFIG_KPROBES) += kprobes.o
48
Stephen Rothwell49209602005-10-12 15:55:09 +100049ifneq ($(CONFIG_PPC_MERGE),y)
50ifeq ($(CONFIG_PPC_ISERIES),y)
51arch/ppc64/kernel/head.o: arch/powerpc/kernel/lparmap.s
52AFLAGS_head.o += -Iarch/powerpc/kernel
53endif
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100054endif