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 10b3491269SPaul MackerrasCFLAGS_btext.o += -fPIC 11cabb5587SStephen Rothwellendif 129b6b563cSPaul Mackerras 13*40ef8cbcSPaul Mackerrasobj-y := semaphore.o traps.o 14*40ef8cbcSPaul Mackerrasobj-$(CONFIG_ALTIVEC) += vecemu.o vector.o 15*40ef8cbcSPaul Mackerrasobj-$(CONFIG_POWER4) += idle_power4.o 16*40ef8cbcSPaul Mackerras 17*40ef8cbcSPaul Mackerrasifeq ($(CONFIG_PPC_MERGE),y) 18*40ef8cbcSPaul Mackerras 1970d64ceaSPaul Mackerrasextra-$(CONFIG_PPC_STD_MMU) := head_32.o 20cabb5587SStephen Rothwellextra-$(CONFIG_PPC64) := head_64.o 2114cf11afSPaul Mackerrasextra-$(CONFIG_40x) := head_4xx.o 2214cf11afSPaul Mackerrasextra-$(CONFIG_44x) := head_44x.o 2314cf11afSPaul Mackerrasextra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o 2414cf11afSPaul Mackerrasextra-$(CONFIG_8xx) := head_8xx.o 2514cf11afSPaul Mackerrasextra-$(CONFIG_6xx) += idle_6xx.o 269994a338SPaul Mackerrasextra-$(CONFIG_PPC64) += entry_64.o 2714cf11afSPaul Mackerrasextra-$(CONFIG_PPC_FPU) += fpu.o 2814cf11afSPaul Mackerrasextra-y += vmlinux.lds 2914cf11afSPaul Mackerras 30*40ef8cbcSPaul Mackerrasobj-y += process.o init_task.o \ 31*40ef8cbcSPaul Mackerras prom.o systbl.o 329994a338SPaul Mackerrasobj-$(CONFIG_PPC32) += entry_32.o setup_32.o misc_32.o 33*40ef8cbcSPaul Mackerrasobj-$(CONFIG_PPC64) += setup_64.o misc_64.o 34b3491269SPaul Mackerrasobj-$(CONFIG_PPC_OF) += prom_init.o of_device.o 3520c8c210SPaul Mackerrasobj-$(CONFIG_MODULES) += ppc_ksyms.o 369b6b563cSPaul Mackerrasobj-$(CONFIG_BOOTX_TEXT) += btext.o 37cabb5587SStephen Rothwell 38cabb5587SStephen Rothwellifeq ($(CONFIG_PPC_ISERIES),y) 39bc6f8a4bSPaul Mackerras$(obj)/head_64.o: $(obj)/lparmap.s 40bc6f8a4bSPaul MackerrasAFLAGS_head_64.o += -I$(obj) 41bc6f8a4bSPaul Mackerrasendif 42cabb5587SStephen Rothwellendif 43