xref: /linux/arch/powerpc/kernel/Makefile (revision b3491269f5604e4265ee2f27b47a76ce1e3678b6)
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
8cabb5587SStephen Rothwellifeq ($(CONFIG_PPC32),y)
99b6b563cSPaul MackerrasCFLAGS_prom_init.o      += -fPIC
10*b3491269SPaul MackerrasCFLAGS_btext.o		+= -fPIC
11cabb5587SStephen Rothwellendif
129b6b563cSPaul Mackerras
139b6b563cSPaul Mackerrasextra-$(CONFIG_PPC_STD_MMU)	:= head.o
14cabb5587SStephen Rothwellextra-$(CONFIG_PPC64)		:= head_64.o
1514cf11afSPaul Mackerrasextra-$(CONFIG_40x)		:= head_4xx.o
1614cf11afSPaul Mackerrasextra-$(CONFIG_44x)		:= head_44x.o
1714cf11afSPaul Mackerrasextra-$(CONFIG_FSL_BOOKE)	:= head_fsl_booke.o
1814cf11afSPaul Mackerrasextra-$(CONFIG_8xx)		:= head_8xx.o
1914cf11afSPaul Mackerrasextra-$(CONFIG_6xx)		+= idle_6xx.o
2014cf11afSPaul Mackerrasextra-$(CONFIG_PPC_FPU)		+= fpu.o
2114cf11afSPaul Mackerrasextra-y				+= vmlinux.lds
2214cf11afSPaul Mackerras
239b6b563cSPaul Mackerrasobj-y				:= traps.o prom.o semaphore.o
249b6b563cSPaul Mackerrasobj-$(CONFIG_PPC32)		+= setup.o process.o
25bd142b70SStephen Rothwellobj-$(CONFIG_PPC64)		+= idle_power4.o
26bd142b70SStephen Rothwellifeq ($(CONFIG_PPC32),y)
27*b3491269SPaul Mackerrasobj-$(CONFIG_PPC_OF)		+= prom_init.o of_device.o
2820c8c210SPaul Mackerrasobj-$(CONFIG_MODULES)		+= ppc_ksyms.o
29bd142b70SStephen Rothwellendif
3014cf11afSPaul Mackerrasobj-$(CONFIG_ALTIVEC)		+= vecemu.o vector.o
319b6b563cSPaul Mackerrasobj-$(CONFIG_BOOTX_TEXT)	+= btext.o
32cabb5587SStephen Rothwell
33cabb5587SStephen Rothwellifeq ($(CONFIG_PPC_ISERIES),y)
34cabb5587SStephen Rothwellarch/powerpc/kernel/head_64.o: arch/powerpc/platforms/iseries/lparmap.s
35cabb5587SStephen RothwellAFLAGS_head_64.o += -Iarch/powerpc/platforms/iseries
36cabb5587SStephen Rothwellendif
37