powerpc: Introduce entry_{32,64}.S, misc_{32,64}.S, systbl.S
[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 extra-$(CONFIG_PPC_STD_MMU)     := head_32.o
14 extra-$(CONFIG_PPC64)           := head_64.o
15 extra-$(CONFIG_40x)             := head_4xx.o
16 extra-$(CONFIG_44x)             := head_44x.o
17 extra-$(CONFIG_FSL_BOOKE)       := head_fsl_booke.o
18 extra-$(CONFIG_8xx)             := head_8xx.o
19 extra-$(CONFIG_6xx)             += idle_6xx.o
20 extra-$(CONFIG_PPC64)           += entry_64.o
21 extra-$(CONFIG_PPC_FPU)         += fpu.o
22 extra-y                         += vmlinux.lds
23
24 obj-y                           += traps.o prom.o semaphore.o
25 obj-$(CONFIG_PPC32)             += entry_32.o setup_32.o misc_32.o
26 obj-$(CONFIG_PPC64)             += idle_power4.o
27 obj-$(CONFIG_PPC64)             += misc_64.o
28 ifeq ($(CONFIG_PPC32),y)
29 obj-$(CONFIG_PPC_OF)            += prom_init.o of_device.o
30 obj-$(CONFIG_MODULES)           += ppc_ksyms.o
31 endif
32 obj-$(CONFIG_ALTIVEC)           += vecemu.o vector.o
33 obj-$(CONFIG_BOOTX_TEXT)        += btext.o
34
35 ifeq ($(CONFIG_PPC_ISERIES),y)
36 arch/powerpc/kernel/head_64.o: arch/powerpc/platforms/iseries/lparmap.s
37 AFLAGS_head_64.o += -Iarch/powerpc/platforms/iseries
38 endif