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 \ |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 16 | align.o bitops.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 | |
Michael Ellerman | d995310 | 2005-10-24 15:07:30 +1000 | [diff] [blame] | 32 | obj-$(CONFIG_PPC_PSERIES) += rtasd.o udbg_16550.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 33 | |
| 34 | obj-$(CONFIG_PPC_BPA) += bpa_setup.o bpa_iommu.o bpa_nvram.o \ |
| 35 | bpa_iic.o spider-pic.o |
| 36 | |
| 37 | obj-$(CONFIG_KEXEC) += machine_kexec.o |
| 38 | obj-$(CONFIG_EEH) += eeh.o |
| 39 | obj-$(CONFIG_PROC_FS) += proc_ppc64.o |
| 40 | obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o |
| 41 | obj-$(CONFIG_SMP) += smp.o |
| 42 | obj-$(CONFIG_MODULES) += module.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 43 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 44 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
| 45 | endif |
Paul Mackerras | 033ef33 | 2005-10-26 17:05:24 +1000 | [diff] [blame] | 46 | obj-$(CONFIG_PPC_RTAS) += rtas_pci.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 47 | obj-$(CONFIG_RTAS_PROC) += rtas-proc.o |
| 48 | obj-$(CONFIG_SCANLOG) += scanlog.o |
| 49 | obj-$(CONFIG_LPARCFG) += lparcfg.o |
| 50 | obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 51 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 52 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
| 53 | endif |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 54 | obj-$(CONFIG_HVCS) += hvcserver.o |
| 55 | |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 56 | obj-$(CONFIG_XICS) += xics.o |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 57 | |
Paul Mackerras | 8342894 | 2005-10-22 16:06:27 +1000 | [diff] [blame] | 58 | obj-$(CONFIG_PPC_PMAC) += udbg_scc.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 59 | |
| 60 | obj-$(CONFIG_PPC_MAPLE) += maple_setup.o maple_pci.o maple_time.o \ |
| 61 | udbg_16550.o |
| 62 | |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 63 | ifdef CONFIG_SMP |
Paul Mackerras | 8342894 | 2005-10-22 16:06:27 +1000 | [diff] [blame] | 64 | obj-$(CONFIG_PPC_PMAC) += smp-tbsync.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 65 | obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o |
| 66 | endif |
| 67 | |
| 68 | obj-$(CONFIG_KPROBES) += kprobes.o |
| 69 | |
| 70 | CFLAGS_ioctl32.o += -Ifs/ |
| 71 | |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 72 | ifneq ($(CONFIG_PPC_MERGE),y) |
| 73 | ifeq ($(CONFIG_PPC_ISERIES),y) |
| 74 | arch/ppc64/kernel/head.o: arch/powerpc/kernel/lparmap.s |
| 75 | AFLAGS_head.o += -Iarch/powerpc/kernel |
| 76 | endif |
Stephen Rothwell | dc1c1ca | 2005-10-01 18:43:42 +1000 | [diff] [blame] | 77 | endif |