diff options
Diffstat (limited to 'arch/powerpc/kernel/Makefile')
-rw-r--r-- | arch/powerpc/kernel/Makefile | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 58c130b10ec8..be3f9d123a6d 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -2,17 +2,31 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | 4 | ||
5 | ifeq ($(CONFIG_PPC64),y) | ||
6 | EXTRA_CFLAGS += -mno-minimal-toc | ||
7 | endif | ||
8 | |||
9 | ifeq ($(CONFIG_PPC32),y) | ||
5 | extra-$(CONFIG_PPC_STD_MMU) := head.o | 10 | extra-$(CONFIG_PPC_STD_MMU) := head.o |
6 | extra_$(CONFIG_PPC64) := head_64.o | 11 | endif |
12 | extra-$(CONFIG_PPC64) := head_64.o | ||
7 | extra-$(CONFIG_40x) := head_4xx.o | 13 | extra-$(CONFIG_40x) := head_4xx.o |
8 | extra-$(CONFIG_44x) := head_44x.o | 14 | extra-$(CONFIG_44x) := head_44x.o |
9 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o | 15 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o |
10 | extra-$(CONFIG_8xx) := head_8xx.o | 16 | extra-$(CONFIG_8xx) := head_8xx.o |
11 | extra-$(CONFIG_6xx) += idle_6xx.o | 17 | extra-$(CONFIG_6xx) += idle_6xx.o |
12 | extra-$(CONFIG_POWER4) += idle_power4.o | ||
13 | extra-$(CONFIG_PPC_FPU) += fpu.o | 18 | extra-$(CONFIG_PPC_FPU) += fpu.o |
14 | extra-y += vmlinux.lds | 19 | extra-y += vmlinux.lds |
15 | 20 | ||
16 | obj-y := semaphore.o traps.o process.o | 21 | obj-y := traps.o |
22 | obj-$(CONFIG_PPC32) += semaphore.o process.o | ||
23 | obj-$(CONFIG_PPC64) += idle_power4.o | ||
24 | ifeq ($(CONFIG_PPC32),y) | ||
17 | obj-$(CONFIG_MODULES) += ppc_ksyms.o | 25 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
26 | endif | ||
18 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o | 27 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
28 | |||
29 | ifeq ($(CONFIG_PPC_ISERIES),y) | ||
30 | arch/powerpc/kernel/head_64.o: arch/powerpc/platforms/iseries/lparmap.s | ||
31 | AFLAGS_head_64.o += -Iarch/powerpc/platforms/iseries | ||
32 | endif | ||