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) 9*9b6b563cSPaul MackerrasCFLAGS_prom_init.o += -fPIC 10cabb5587SStephen Rothwellendif 11*9b6b563cSPaul Mackerras 12*9b6b563cSPaul Mackerrasextra-$(CONFIG_PPC_STD_MMU) := head.o 13cabb5587SStephen Rothwellextra-$(CONFIG_PPC64) := head_64.o 1414cf11afSPaul Mackerrasextra-$(CONFIG_40x) := head_4xx.o 1514cf11afSPaul Mackerrasextra-$(CONFIG_44x) := head_44x.o 1614cf11afSPaul Mackerrasextra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o 1714cf11afSPaul Mackerrasextra-$(CONFIG_8xx) := head_8xx.o 1814cf11afSPaul Mackerrasextra-$(CONFIG_6xx) += idle_6xx.o 1914cf11afSPaul Mackerrasextra-$(CONFIG_PPC_FPU) += fpu.o 2014cf11afSPaul Mackerrasextra-y += vmlinux.lds 2114cf11afSPaul Mackerras 22*9b6b563cSPaul Mackerrasobj-y := traps.o prom.o semaphore.o 23*9b6b563cSPaul Mackerrasobj-$(CONFIG_PPC32) += setup.o process.o 24bd142b70SStephen Rothwellobj-$(CONFIG_PPC64) += idle_power4.o 25bd142b70SStephen Rothwellifeq ($(CONFIG_PPC32),y) 26*9b6b563cSPaul Mackerrasobj-$(CONFIG_PPC_OF) += prom_init.o 2720c8c210SPaul Mackerrasobj-$(CONFIG_MODULES) += ppc_ksyms.o 28bd142b70SStephen Rothwellendif 2914cf11afSPaul Mackerrasobj-$(CONFIG_ALTIVEC) += vecemu.o vector.o 30*9b6b563cSPaul Mackerrasobj-$(CONFIG_BOOTX_TEXT) += btext.o 31cabb5587SStephen Rothwell 32cabb5587SStephen Rothwellifeq ($(CONFIG_PPC_ISERIES),y) 33cabb5587SStephen Rothwellarch/powerpc/kernel/head_64.o: arch/powerpc/platforms/iseries/lparmap.s 34cabb5587SStephen RothwellAFLAGS_head_64.o += -Iarch/powerpc/platforms/iseries 35cabb5587SStephen Rothwellendif 36