[PATCH] unpaged: VM_UNPAGED
[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 align.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 idle_64.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 obj64-$(CONFIG_PPC_MULTIPLATFORM) += nvram_64.o
39
40 ifeq ($(CONFIG_PPC_MERGE),y)
41
42 extra-$(CONFIG_PPC_STD_MMU)     := head_32.o
43 extra-$(CONFIG_PPC64)           := head_64.o
44 extra-$(CONFIG_40x)             := head_4xx.o
45 extra-$(CONFIG_44x)             := head_44x.o
46 extra-$(CONFIG_FSL_BOOKE)       := head_fsl_booke.o
47 extra-$(CONFIG_8xx)             := head_8xx.o
48 extra-y                         += vmlinux.lds
49
50 obj-y                           += process.o init_task.o time.o \
51                                    prom.o traps.o setup-common.o
52 obj-$(CONFIG_PPC32)             += entry_32.o setup_32.o misc_32.o systbl.o
53 obj-$(CONFIG_PPC64)             += misc_64.o dma_64.o iommu.o
54 obj-$(CONFIG_PPC_OF)            += prom_init.o
55 obj-$(CONFIG_MODULES)           += ppc_ksyms.o
56 obj-$(CONFIG_BOOTX_TEXT)        += btext.o
57 obj-$(CONFIG_6xx)               += idle_6xx.o
58 obj-$(CONFIG_SMP)               += smp.o
59 obj-$(CONFIG_KPROBES)           += kprobes.o
60
61 module-$(CONFIG_PPC64)          += module_64.o
62 obj-$(CONFIG_MODULES)           += $(module-y)
63
64 pci64-$(CONFIG_PPC64)           += pci_64.o pci_dn.o pci_iommu.o \
65                                    pci_direct_iommu.o iomap.o
66 obj-$(CONFIG_PCI)               += $(pci64-y)
67
68 kexec64-$(CONFIG_PPC64)         += machine_kexec_64.o
69 obj-$(CONFIG_KEXEC)             += $(kexec64-y)
70
71 ifeq ($(CONFIG_PPC_ISERIES),y)
72 $(obj)/head_64.o: $(obj)/lparmap.s
73 AFLAGS_head_64.o += -I$(obj)
74 endif
75
76 else
77 # stuff used from here for ARCH=ppc
78 smpobj-$(CONFIG_SMP)            += smp.o
79
80 endif
81
82 obj-$(CONFIG_PPC64)             += $(obj64-y)
83
84 extra-$(CONFIG_PPC_FPU)         += fpu.o
85 extra-$(CONFIG_PPC64)           += entry_64.o