[PATCH] powerpc: Move various ppc64 files with no ppc32 equivalent to powerpc
[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                                    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
20 obj-$(CONFIG_ALTIVEC)           += vecemu.o vector.o
21 obj-$(CONFIG_POWER4)            += idle_power4.o
22 obj-$(CONFIG_PPC_OF)            += of_device.o
23 obj-$(CONFIG_PPC_RTAS)          += rtas.o
24 obj-$(CONFIG_RTAS_FLASH)        += rtas_flash.o
25 obj-$(CONFIG_RTAS_PROC)         += rtas-proc.o
26 obj-$(CONFIG_IBMVIO)            += vio.o
27 obj-$(CONFIG_GENERIC_TBSYNC)    += smp-tbsync.o
28
29 ifeq ($(CONFIG_PPC_MERGE),y)
30
31 extra-$(CONFIG_PPC_STD_MMU)     := head_32.o
32 extra-$(CONFIG_PPC64)           := head_64.o
33 extra-$(CONFIG_40x)             := head_4xx.o
34 extra-$(CONFIG_44x)             := head_44x.o
35 extra-$(CONFIG_FSL_BOOKE)       := head_fsl_booke.o
36 extra-$(CONFIG_8xx)             := head_8xx.o
37 extra-y                         += vmlinux.lds
38
39 obj-y                           += process.o init_task.o time.o \
40                                    prom.o traps.o setup-common.o
41 obj-$(CONFIG_PPC32)             += entry_32.o setup_32.o misc_32.o systbl.o
42 obj-$(CONFIG_PPC64)             += misc_64.o
43 obj-$(CONFIG_PPC_OF)            += prom_init.o
44 obj-$(CONFIG_MODULES)           += ppc_ksyms.o
45 obj-$(CONFIG_BOOTX_TEXT)        += btext.o
46 obj-$(CONFIG_6xx)               += idle_6xx.o
47 obj-$(CONFIG_SMP)               += smp.o
48
49 ifeq ($(CONFIG_PPC_ISERIES),y)
50 $(obj)/head_64.o: $(obj)/lparmap.s
51 AFLAGS_head_64.o += -I$(obj)
52 endif
53
54 else
55 # stuff used from here for ARCH=ppc or ARCH=ppc64
56 smpobj-$(CONFIG_SMP)            += smp.o
57 obj-$(CONFIG_PPC64)             += traps.o process.o init_task.o time.o \
58                                    setup-common.o $(smpobj-y)
59
60
61 endif
62
63 extra-$(CONFIG_PPC_FPU)         += fpu.o
64 extra-$(CONFIG_PPC64)           += entry_64.o