Merge branch 'master'
[linux-2.6] / arch / powerpc / kernel / Makefile
1 #
2 # Makefile for the linux kernel.
3 #
4
5 ifeq ($(CONFIG_PPC64),y)
6 EXTRA_CFLAGS    += -mno-minimal-toc
7 CFLAGS_ioctl32.o += -Ifs/
8 endif
9 ifeq ($(CONFIG_PPC32),y)
10 CFLAGS_prom_init.o      += -fPIC
11 CFLAGS_btext.o          += -fPIC
12 endif
13
14 obj-y                           := semaphore.o cputable.o ptrace.o syscalls.o \
15                                    irq.o signal_32.o pmc.o vdso.o
16 obj-y                           += vdso32/
17 obj-$(CONFIG_PPC64)             += setup_64.o binfmt_elf32.o sys_ppc32.o \
18                                    signal_64.o ptrace32.o systbl.o \
19                                    paca.o ioctl32.o cpu_setup_power4.o \
20                                    firmware.o sysfs.o udbg.o
21 obj-$(CONFIG_PPC64)             += vdso64/
22 obj-$(CONFIG_ALTIVEC)           += vecemu.o vector.o
23 obj-$(CONFIG_POWER4)            += idle_power4.o
24 obj-$(CONFIG_PPC_OF)            += of_device.o
25 procfs-$(CONFIG_PPC64)          := proc_ppc64.o
26 obj-$(CONFIG_PROC_FS)           += $(procfs-y)
27 rtaspci-$(CONFIG_PPC64)         := rtas_pci.o
28 obj-$(CONFIG_PPC_RTAS)          += rtas.o rtas-rtc.o $(rtaspci-y)
29 obj-$(CONFIG_RTAS_FLASH)        += rtas_flash.o
30 obj-$(CONFIG_RTAS_PROC)         += rtas-proc.o
31 obj-$(CONFIG_LPARCFG)           += lparcfg.o
32 obj-$(CONFIG_IBMVIO)            += vio.o
33 obj-$(CONFIG_GENERIC_TBSYNC)    += smp-tbsync.o
34 obj-$(CONFIG_PPC_PSERIES)       += udbg_16550.o
35 obj-$(CONFIG_PPC_MAPLE)         += udbg_16550.o
36 udbgscc-$(CONFIG_PPC64)         := udbg_scc.o
37 obj-$(CONFIG_PPC_PMAC)          += $(udbgscc-y)
38
39 ifeq ($(CONFIG_PPC_MERGE),y)
40
41 extra-$(CONFIG_PPC_STD_MMU)     := head_32.o
42 extra-$(CONFIG_PPC64)           := head_64.o
43 extra-$(CONFIG_40x)             := head_4xx.o
44 extra-$(CONFIG_44x)             := head_44x.o
45 extra-$(CONFIG_FSL_BOOKE)       := head_fsl_booke.o
46 extra-$(CONFIG_8xx)             := head_8xx.o
47 extra-y                         += vmlinux.lds
48
49 obj-y                           += process.o init_task.o time.o \
50                                    prom.o traps.o setup-common.o
51 obj-$(CONFIG_PPC32)             += entry_32.o setup_32.o misc_32.o systbl.o
52 obj-$(CONFIG_PPC64)             += misc_64.o dma_64.o iommu.o
53 obj-$(CONFIG_PPC_OF)            += prom_init.o
54 obj-$(CONFIG_MODULES)           += ppc_ksyms.o
55 obj-$(CONFIG_BOOTX_TEXT)        += btext.o
56 obj-$(CONFIG_6xx)               += idle_6xx.o
57 obj-$(CONFIG_SMP)               += smp.o
58 obj-$(CONFIG_KPROBES)           += kprobes.o
59
60 module-$(CONFIG_PPC64)          += module_64.o
61 obj-$(CONFIG_MODULES)           += $(module-y)
62
63 pci64-$(CONFIG_PPC64)           += pci_64.o pci_dn.o pci_iommu.o \
64                                    pci_direct_iommu.o iomap.o
65 obj-$(CONFIG_PCI)               += $(pci64-y)
66
67 kexec64-$(CONFIG_PPC64)         += machine_kexec_64.o
68 obj-$(CONFIG_KEXEC)             += $(kexec64-y)
69
70 ifeq ($(CONFIG_PPC_ISERIES),y)
71 $(obj)/head_64.o: $(obj)/lparmap.s
72 AFLAGS_head_64.o += -I$(obj)
73 endif
74
75 else
76 # stuff used from here for ARCH=ppc
77 smpobj-$(CONFIG_SMP)            += smp.o
78
79 endif
80
81 extra-$(CONFIG_PPC_FPU)         += fpu.o
82 extra-$(CONFIG_PPC64)           += entry_64.o