xref: /linux/arch/powerpc/kernel/Makefile (revision cabb558714945e92000f627dda562aa5e86a31af)
114cf11afSPaul Mackerras#
214cf11afSPaul Mackerras# Makefile for the linux kernel.
314cf11afSPaul Mackerras#
414cf11afSPaul Mackerras
5bd142b70SStephen Rothwellifeq ($(CONFIG_PPC64),y)
6bd142b70SStephen RothwellEXTRA_CFLAGS	+= -mno-minimal-toc
7bd142b70SStephen Rothwellendif
8bd142b70SStephen Rothwell
9*cabb5587SStephen Rothwellifeq ($(CONFIG_PPC32),y)
1014cf11afSPaul Mackerrasextra-$(CONFIG_PPC_STD_MMU)	:= head.o
11*cabb5587SStephen Rothwellendif
12*cabb5587SStephen Rothwellextra-$(CONFIG_PPC64)		:= head_64.o
1314cf11afSPaul Mackerrasextra-$(CONFIG_40x)		:= head_4xx.o
1414cf11afSPaul Mackerrasextra-$(CONFIG_44x)		:= head_44x.o
1514cf11afSPaul Mackerrasextra-$(CONFIG_FSL_BOOKE)	:= head_fsl_booke.o
1614cf11afSPaul Mackerrasextra-$(CONFIG_8xx)		:= head_8xx.o
1714cf11afSPaul Mackerrasextra-$(CONFIG_6xx)		+= idle_6xx.o
1814cf11afSPaul Mackerrasextra-$(CONFIG_PPC_FPU)		+= fpu.o
1914cf11afSPaul Mackerrasextra-y				+= vmlinux.lds
2014cf11afSPaul Mackerras
21bd142b70SStephen Rothwellobj-y				:= traps.o
22bd142b70SStephen Rothwellobj-$(CONFIG_PPC32)		+= semaphore.o process.o
23bd142b70SStephen Rothwellobj-$(CONFIG_PPC64)		+= idle_power4.o
24bd142b70SStephen Rothwellifeq ($(CONFIG_PPC32),y)
2520c8c210SPaul Mackerrasobj-$(CONFIG_MODULES)		+= ppc_ksyms.o
26bd142b70SStephen Rothwellendif
2714cf11afSPaul Mackerrasobj-$(CONFIG_ALTIVEC)		+= vecemu.o vector.o
28*cabb5587SStephen Rothwell
29*cabb5587SStephen Rothwellifeq ($(CONFIG_PPC_ISERIES),y)
30*cabb5587SStephen Rothwellarch/powerpc/kernel/head_64.o: arch/powerpc/platforms/iseries/lparmap.s
31*cabb5587SStephen RothwellAFLAGS_head_64.o += -Iarch/powerpc/platforms/iseries
32*cabb5587SStephen Rothwellendif
33