[PATCH] sanitize building of fs/compat_ioctl.c
[linux-2.6.git] / 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 endif
8 ifeq ($(CONFIG_PPC32),y)
9 CFLAGS_prom_init.o      += -fPIC
10 CFLAGS_btext.o          += -fPIC
11 endif
12
13 obj-y                           := semaphore.o cputable.o ptrace.o syscalls.o \
14                                    irq.o align.o signal_32.o pmc.o vdso.o
15 obj-y                           += vdso32/
16 obj-$(CONFIG_PPC64)             += setup_64.o binfmt_elf32.o sys_ppc32.o \
17                                    signal_64.o ptrace32.o systbl.o \
18                                    paca.o cpu_setup_power4.o \
19                                    firmware.o sysfs.o idle_64.o
20 obj-$(CONFIG_PPC64)             += vdso64/
21 obj-$(CONFIG_ALTIVEC)           += vecemu.o vector.o
22 obj-$(CONFIG_POWER4)            += idle_power4.o
23 obj-$(CONFIG_PPC_OF)            += of_device.o prom_parse.o
24 procfs-$(CONFIG_PPC64)          := proc_ppc64.o
25 obj-$(CONFIG_PROC_FS)           += $(procfs-y)
26 rtaspci-$(CONFIG_PPC64)         := rtas_pci.o
27 obj-$(CONFIG_PPC_RTAS)          += rtas.o rtas-rtc.o $(rtaspci-y)
28 obj-$(CONFIG_RTAS_FLASH)        += rtas_flash.o
29 obj-$(CONFIG_RTAS_PROC)         += rtas-proc.o
30 obj-$(CONFIG_LPARCFG)           += lparcfg.o
31 obj-$(CONFIG_IBMVIO)            += vio.o
32 obj-$(CONFIG_IBMEBUS)           += ibmebus.o
33 obj-$(CONFIG_GENERIC_TBSYNC)    += smp-tbsync.o
34 obj64-$(CONFIG_PPC_MULTIPLATFORM) += nvram_64.o
35 obj-$(CONFIG_CRASH_DUMP)        += crash_dump.o
36
37 ifeq ($(CONFIG_PPC_MERGE),y)
38
39 extra-$(CONFIG_PPC_STD_MMU)     := head_32.o
40 extra-$(CONFIG_PPC64)           := head_64.o
41 extra-$(CONFIG_40x)             := head_4xx.o
42 extra-$(CONFIG_44x)             := head_44x.o
43 extra-$(CONFIG_FSL_BOOKE)       := head_fsl_booke.o
44 extra-$(CONFIG_8xx)             := head_8xx.o
45 extra-y                         += vmlinux.lds
46
47 obj-y                           += process.o init_task.o time.o \
48                                    prom.o traps.o setup-common.o udbg.o
49 obj-$(CONFIG_PPC32)             += entry_32.o setup_32.o misc_32.o systbl.o
50 obj-$(CONFIG_PPC64)             += misc_64.o dma_64.o iommu.o
51 obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o
52 obj-$(CONFIG_MODULES)           += ppc_ksyms.o
53 obj-$(CONFIG_BOOTX_TEXT)        += btext.o
54 obj-$(CONFIG_6xx)               += idle_6xx.o
55 obj-$(CONFIG_SMP)               += smp.o
56 obj-$(CONFIG_KPROBES)           += kprobes.o
57 obj-$(CONFIG_SERIAL_8250)       += legacy_serial.o udbg_16550.o
58 module-$(CONFIG_PPC64)          += module_64.o
59 obj-$(CONFIG_MODULES)           += $(module-y)
60
61 pci64-$(CONFIG_PPC64)           += pci_64.o pci_dn.o pci_iommu.o \
62                                    pci_direct_iommu.o iomap.o
63 obj-$(CONFIG_PCI)               += $(pci64-y)
64 kexec-$(CONFIG_PPC64)           := machine_kexec_64.o
65 kexec-$(CONFIG_PPC32)           := machine_kexec_32.o
66 obj-$(CONFIG_KEXEC)             += machine_kexec.o crash.o $(kexec-y)
67
68 ifeq ($(CONFIG_PPC_ISERIES),y)
69 $(obj)/head_64.o: $(obj)/lparmap.s
70 AFLAGS_head_64.o += -I$(obj)
71 endif
72
73 else
74 # stuff used from here for ARCH=ppc
75 smpobj-$(CONFIG_SMP)            += smp.o
76
77 endif
78
79 obj-$(CONFIG_PPC64)             += $(obj64-y)
80
81 extra-$(CONFIG_PPC_FPU)         += fpu.o
82 extra-$(CONFIG_PPC64)           += entry_64.o