Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the linux ppc64 kernel. |
| 3 | # |
| 4 | |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 5 | ifneq ($(CONFIG_PPC_MERGE),y) |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 6 | |
| 7 | EXTRA_CFLAGS += -mno-minimal-toc |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | extra-y := head.o vmlinux.lds |
| 9 | |
Stephen Rothwell | 640768e | 2005-10-28 12:51:45 +1000 | [diff] [blame] | 10 | obj-y := misc.o prom.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 11 | |
| 12 | endif |
| 13 | |
Stephen Rothwell | 756e710 | 2005-11-09 18:07:45 +1100 | [diff] [blame] | 14 | obj-y += idle.o dma.o \ |
David Gibson | 8882a4d | 2005-11-09 13:38:01 +1100 | [diff] [blame] | 15 | align.o \ |
| 16 | udbg.o \ |
Paul Mackerras | b123923 | 2005-10-20 09:11:29 +1000 | [diff] [blame] | 17 | rtc.o \ |
David Gibson | d3d2176 | 2005-11-10 15:26:20 +1100 | [diff] [blame^] | 18 | iommu.o vdso.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | obj-y += vdso32/ vdso64/ |
| 20 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o |
| 22 | |
| 23 | obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y) |
| 24 | |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 25 | obj-$(CONFIG_PPC_MULTIPLATFORM) += nvram.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 26 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 27 | obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o |
| 28 | endif |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 29 | |
Paul Mackerras | f4fcbbe | 2005-11-03 14:41:19 +1100 | [diff] [blame] | 30 | obj-$(CONFIG_PPC_PSERIES) += udbg_16550.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 31 | |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 32 | obj-$(CONFIG_KEXEC) += machine_kexec.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 33 | obj-$(CONFIG_MODULES) += module.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 34 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 35 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
| 36 | endif |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 37 | obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 38 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 39 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
| 40 | endif |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 41 | obj-$(CONFIG_HVCS) += hvcserver.o |
| 42 | |
Paul Mackerras | 8342894 | 2005-10-22 16:06:27 +1000 | [diff] [blame] | 43 | obj-$(CONFIG_PPC_PMAC) += udbg_scc.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 44 | |
Paul Mackerras | 0cb7b2a | 2005-10-29 22:07:56 +1000 | [diff] [blame] | 45 | obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 46 | |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 47 | obj-$(CONFIG_KPROBES) += kprobes.o |
| 48 | |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 49 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 50 | ifeq ($(CONFIG_PPC_ISERIES),y) |
| 51 | arch/ppc64/kernel/head.o: arch/powerpc/kernel/lparmap.s |
| 52 | AFLAGS_head.o += -Iarch/powerpc/kernel |
| 53 | endif |
Stephen Rothwell | dc1c1ca | 2005-10-01 18:43:42 +1000 | [diff] [blame] | 54 | endif |