Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the linux kernel. |
| 3 | # |
| 4 | |
Stephen Rothwell | bd142b7 | 2005-09-30 13:51:25 +1000 | [diff] [blame] | 5 | ifeq ($(CONFIG_PPC64),y) |
| 6 | EXTRA_CFLAGS += -mno-minimal-toc |
| 7 | endif |
| 8 | |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame^] | 9 | ifeq ($(CONFIG_PPC32),y) |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 10 | extra-$(CONFIG_PPC_STD_MMU) := head.o |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame^] | 11 | endif |
| 12 | extra-$(CONFIG_PPC64) := head_64.o |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 13 | extra-$(CONFIG_40x) := head_4xx.o |
| 14 | extra-$(CONFIG_44x) := head_44x.o |
| 15 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o |
| 16 | extra-$(CONFIG_8xx) := head_8xx.o |
| 17 | extra-$(CONFIG_6xx) += idle_6xx.o |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 18 | extra-$(CONFIG_PPC_FPU) += fpu.o |
| 19 | extra-y += vmlinux.lds |
| 20 | |
Stephen Rothwell | bd142b7 | 2005-09-30 13:51:25 +1000 | [diff] [blame] | 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) |
Paul Mackerras | 20c8c21 | 2005-09-28 20:28:14 +1000 | [diff] [blame] | 25 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
Stephen Rothwell | bd142b7 | 2005-09-30 13:51:25 +1000 | [diff] [blame] | 26 | endif |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 27 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame^] | 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 |