xref: /linux/arch/powerpc/kernel/Makefile (revision 033ef338b6e007dc081c6282a4f2a9dd761f8cd2)
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
1377f543cbSPaul Mackerrasobj-y				:= semaphore.o cputable.o ptrace.o syscalls.o \
14f7f6f4feSDavid Gibson				   signal_32.o pmc.o
15b123923dSPaul Mackerrasobj-$(CONFIG_PPC64)		+= binfmt_elf32.o sys_ppc32.o ptrace32.o
1640ef8cbcSPaul Mackerrasobj-$(CONFIG_ALTIVEC)		+= vecemu.o vector.o
1740ef8cbcSPaul Mackerrasobj-$(CONFIG_POWER4)		+= idle_power4.o
18eec5ef90SStephen Rothwellobj-$(CONFIG_PPC_OF)		+= of_device.o
19*033ef338SPaul Mackerrasobj-$(CONFIG_PPC_RTAS)		+= rtas.o
2058046019SStephen Rothwellobj-$(CONFIG_IBMVIO)		+= vio.o
2140ef8cbcSPaul Mackerras
2240ef8cbcSPaul Mackerrasifeq ($(CONFIG_PPC_MERGE),y)
2340ef8cbcSPaul Mackerras
2470d64ceaSPaul Mackerrasextra-$(CONFIG_PPC_STD_MMU)	:= head_32.o
25cabb5587SStephen Rothwellextra-$(CONFIG_PPC64)		:= head_64.o
2614cf11afSPaul Mackerrasextra-$(CONFIG_40x)		:= head_4xx.o
2714cf11afSPaul Mackerrasextra-$(CONFIG_44x)		:= head_44x.o
2814cf11afSPaul Mackerrasextra-$(CONFIG_FSL_BOOKE)	:= head_fsl_booke.o
2914cf11afSPaul Mackerrasextra-$(CONFIG_8xx)		:= head_8xx.o
309994a338SPaul Mackerrasextra-$(CONFIG_PPC64)		+= entry_64.o
3114cf11afSPaul Mackerrasextra-$(CONFIG_PPC_FPU)		+= fpu.o
3214cf11afSPaul Mackerrasextra-y				+= vmlinux.lds
3314cf11afSPaul Mackerras
34f2783c15SPaul Mackerrasobj-y				+= process.o init_task.o time.o \
3577f543cbSPaul Mackerras				   prom.o systbl.o traps.o
3677f543cbSPaul Mackerrasobj-$(CONFIG_PPC32)		+= entry_32.o idle_6xx.o setup_32.o misc_32.o
3740ef8cbcSPaul Mackerrasobj-$(CONFIG_PPC64)		+= setup_64.o misc_64.o
38eec5ef90SStephen Rothwellobj-$(CONFIG_PPC_OF)		+= prom_init.o
3920c8c210SPaul Mackerrasobj-$(CONFIG_MODULES)		+= ppc_ksyms.o
409b6b563cSPaul Mackerrasobj-$(CONFIG_BOOTX_TEXT)	+= btext.o
41cabb5587SStephen Rothwell
42cabb5587SStephen Rothwellifeq ($(CONFIG_PPC_ISERIES),y)
43bc6f8a4bSPaul Mackerras$(obj)/head_64.o: $(obj)/lparmap.s
44bc6f8a4bSPaul MackerrasAFLAGS_head_64.o += -I$(obj)
45bc6f8a4bSPaul Mackerrasendif
46fd582ec8SPaul Mackerras
47fd582ec8SPaul Mackerraselse
48fd582ec8SPaul Mackerras# stuff used from here for ARCH=ppc or ARCH=ppc64
49f2783c15SPaul Mackerrasobj-$(CONFIG_PPC64)		+= traps.o process.o init_task.o time.o
50fd582ec8SPaul Mackerras
51fd582ec8SPaul Mackerrasfpux-$(CONFIG_PPC32)		+= fpu.o
52fd582ec8SPaul Mackerrasextra-$(CONFIG_PPC_FPU)		+= $(fpux-y)
53fd582ec8SPaul Mackerras
54cabb5587SStephen Rothwellendif
55