Merge master.kernel.org:/home/rmk/linux-2.6-mmc
[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
16 obj-$(CONFIG_PPC64)             += setup_64.o binfmt_elf32.o sys_ppc32.o \
17                                    signal_64.o ptrace32.o systbl.o \
18                                    paca.o ioctl32.o cpu_setup_power4.o \
19                                    firmware.o sysfs.o
20 obj-$(CONFIG_ALTIVEC)           += vecemu.o vector.o
21 obj-$(CONFIG_POWER4)            += idle_power4.o
22 obj-$(CONFIG_PPC_OF)            += of_device.o
23 procfs-$(CONFIG_PPC64)          := proc_ppc64.o
24 obj-$(CONFIG_PROC_FS)           += $(procfs-y)
25 rtaspci-$(CONFIG_PPC64)         := rtas_pci.o
26 obj-$(CONFIG_PPC_RTAS)          += rtas.o $(rtaspci-y)
27 obj-$(CONFIG_RTAS_FLASH)        += rtas_flash.o
28 obj-$(CONFIG_RTAS_PROC)         += rtas-proc.o
29 obj-$(CONFIG_LPARCFG)           += lparcfg.o
30 obj-$(CONFIG_IBMVIO)            += vio.o
31 obj-$(CONFIG_GENERIC_TBSYNC)    += smp-tbsync.o
32
33 ifeq ($(CONFIG_PPC_MERGE),y)
34
35 extra-$(CONFIG_PPC_STD_MMU)     := head_32.o
36 extra-$(CONFIG_PPC64)           := head_64.o
37 extra-$(CONFIG_40x)             := head_4xx.o
38 extra-$(CONFIG_44x)             := head_44x.o
39 extra-$(CONFIG_FSL_BOOKE)       := head_fsl_booke.o
40 extra-$(CONFIG_8xx)             := head_8xx.o
41 extra-y                         += vmlinux.lds
42
43 obj-y                           += process.o init_task.o time.o \
44                                    prom.o traps.o setup-common.o
45 obj-$(CONFIG_PPC32)             += entry_32.o setup_32.o misc_32.o systbl.o
46 obj-$(CONFIG_PPC64)             += misc_64.o
47 obj-$(CONFIG_PPC_OF)            += prom_init.o
48 obj-$(CONFIG_MODULES)           += ppc_ksyms.o
49 obj-$(CONFIG_BOOTX_TEXT)        += btext.o
50 obj-$(CONFIG_6xx)               += idle_6xx.o
51 obj-$(CONFIG_SMP)               += smp.o
52
53 ifeq ($(CONFIG_PPC_ISERIES),y)
54 $(obj)/head_64.o: $(obj)/lparmap.s
55 AFLAGS_head_64.o += -I$(obj)
56 endif
57
58 else
59 # stuff used from here for ARCH=ppc or ARCH=ppc64
60 smpobj-$(CONFIG_SMP)            += smp.o
61 obj-$(CONFIG_PPC64)             += traps.o process.o init_task.o time.o \
62                                    setup-common.o $(smpobj-y)
63
64
65 endif
66
67 extra-$(CONFIG_PPC_FPU)         += fpu.o
68 extra-$(CONFIG_PPC64)           += entry_64.o