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 | |
| 14 | obj-y += irq.o idle.o dma.o \ |
Paul Mackerras | f2783c1 | 2005-10-20 09:23:26 +1000 | [diff] [blame] | 15 | signal.o \ |
David Gibson | a0e60b2 | 2005-11-01 17:28:10 +1100 | [diff] [blame] | 16 | align.o pacaData.o \ |
Paul Mackerras | 30286ef | 2005-10-17 20:10:13 +1000 | [diff] [blame] | 17 | udbg.o ioctl32.o \ |
Paul Mackerras | b123923 | 2005-10-20 09:11:29 +1000 | [diff] [blame] | 18 | rtc.o \ |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 19 | cpu_setup_power4.o \ |
David Gibson | f7f6f4f | 2005-10-19 14:53:32 +1000 | [diff] [blame] | 20 | iommu.o sysfs.o vdso.o firmware.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | obj-y += vdso32/ vdso64/ |
| 22 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o |
| 24 | |
| 25 | obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y) |
| 26 | |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 27 | obj-$(CONFIG_PPC_MULTIPLATFORM) += nvram.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 28 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 29 | obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o |
| 30 | endif |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 31 | |
Paul Mackerras | f4fcbbe | 2005-11-03 14:41:19 +1100 | [diff] [blame^] | 32 | obj-$(CONFIG_PPC_PSERIES) += udbg_16550.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 33 | |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 34 | obj-$(CONFIG_KEXEC) += machine_kexec.o |
| 35 | obj-$(CONFIG_EEH) += eeh.o |
| 36 | obj-$(CONFIG_PROC_FS) += proc_ppc64.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 37 | obj-$(CONFIG_SMP) += smp.o |
| 38 | obj-$(CONFIG_MODULES) += module.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 39 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 40 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
| 41 | endif |
Paul Mackerras | 033ef33 | 2005-10-26 17:05:24 +1000 | [diff] [blame] | 42 | obj-$(CONFIG_PPC_RTAS) += rtas_pci.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 43 | obj-$(CONFIG_SCANLOG) += scanlog.o |
| 44 | obj-$(CONFIG_LPARCFG) += lparcfg.o |
| 45 | obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 46 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 47 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
| 48 | endif |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 49 | obj-$(CONFIG_HVCS) += hvcserver.o |
| 50 | |
Paul Mackerras | 8342894 | 2005-10-22 16:06:27 +1000 | [diff] [blame] | 51 | obj-$(CONFIG_PPC_PMAC) += udbg_scc.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 52 | |
Paul Mackerras | 0cb7b2a | 2005-10-29 22:07:56 +1000 | [diff] [blame] | 53 | obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 54 | |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 55 | ifdef CONFIG_SMP |
Paul Mackerras | 8342894 | 2005-10-22 16:06:27 +1000 | [diff] [blame] | 56 | obj-$(CONFIG_PPC_PMAC) += smp-tbsync.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 57 | obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o |
| 58 | endif |
| 59 | |
| 60 | obj-$(CONFIG_KPROBES) += kprobes.o |
| 61 | |
| 62 | CFLAGS_ioctl32.o += -Ifs/ |
| 63 | |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 64 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 65 | ifeq ($(CONFIG_PPC_ISERIES),y) |
| 66 | arch/ppc64/kernel/head.o: arch/powerpc/kernel/lparmap.s |
| 67 | AFLAGS_head.o += -Iarch/powerpc/kernel |
| 68 | endif |
Stephen Rothwell | dc1c1ca | 2005-10-01 18:43:42 +1000 | [diff] [blame] | 69 | endif |