xref: /linux/arch/mips/kernel/Makefile (revision 4e6a05fe5f87efd58da16fbf61e1f6329575fcfd)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the Linux/MIPS kernel.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
51da177e4SLinus Torvaldsextra-y		:= head.o init_task.o vmlinux.lds
61da177e4SLinus Torvalds
71da177e4SLinus Torvaldsobj-y		+= cpu-probe.o branch.o entry.o genex.o irq.o process.o \
81da177e4SLinus Torvalds		   ptrace.o reset.o semaphore.o setup.o signal.o syscall.o \
91da177e4SLinus Torvalds		   time.o traps.o unaligned.o
101da177e4SLinus Torvalds
111da177e4SLinus Torvaldsbinfmt_irix-objs	:= irixelf.o irixinv.o irixioctl.o irixsig.o	\
121da177e4SLinus Torvalds			   irix5sys.o sysirix.o
131da177e4SLinus Torvalds
14*4e6a05feSThiemo Seuferobj-$(CONFIG_MODULES)		+= mips_ksyms.o module.o
151da177e4SLinus Torvalds
161da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R3000)		+= r2300_fpu.o r2300_switch.o
171da177e4SLinus Torvaldsobj-$(CONFIG_CPU_TX39XX)	+= r2300_fpu.o r2300_switch.o
181da177e4SLinus Torvaldsobj-$(CONFIG_CPU_TX49XX)	+= r4k_fpu.o r4k_switch.o
191da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R4000)		+= r4k_fpu.o r4k_switch.o
201da177e4SLinus Torvaldsobj-$(CONFIG_CPU_VR41XX)	+= r4k_fpu.o r4k_switch.o
211da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R4300)		+= r4k_fpu.o r4k_switch.o
221da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R4X00)		+= r4k_fpu.o r4k_switch.o
231da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R5000)		+= r4k_fpu.o r4k_switch.o
241da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R5432)		+= r4k_fpu.o r4k_switch.o
251da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R8000)		+= r4k_fpu.o r4k_switch.o
261da177e4SLinus Torvaldsobj-$(CONFIG_CPU_RM7000)	+= r4k_fpu.o r4k_switch.o
271da177e4SLinus Torvaldsobj-$(CONFIG_CPU_RM9000)	+= r4k_fpu.o r4k_switch.o
281da177e4SLinus Torvaldsobj-$(CONFIG_CPU_NEVADA)	+= r4k_fpu.o r4k_switch.o
291da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R10000)	+= r4k_fpu.o r4k_switch.o
301da177e4SLinus Torvaldsobj-$(CONFIG_CPU_SB1)		+= r4k_fpu.o r4k_switch.o
311da177e4SLinus Torvaldsobj-$(CONFIG_CPU_MIPS32)	+= r4k_fpu.o r4k_switch.o
321da177e4SLinus Torvaldsobj-$(CONFIG_CPU_MIPS64)	+= r4k_fpu.o r4k_switch.o
331da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R6000)		+= r6000_fpu.o r4k_switch.o
341da177e4SLinus Torvalds
351da177e4SLinus Torvaldsobj-$(CONFIG_SMP)		+= smp.o
361da177e4SLinus Torvalds
371da177e4SLinus Torvaldsobj-$(CONFIG_NO_ISA)		+= dma-no-isa.o
381da177e4SLinus Torvaldsobj-$(CONFIG_I8259)		+= i8259.o
391da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU)		+= irq_cpu.o
401da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU_RM7K)	+= irq-rm7000.o
411da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU_RM9K)	+= irq-rm9000.o
421da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_MV64340)	+= irq-mv6434x.o
431da177e4SLinus Torvalds
44875d43e7SRalf Baechleobj-$(CONFIG_32BIT)		+= scall32-o32.o
45875d43e7SRalf Baechleobj-$(CONFIG_64BIT)		+= scall64-64.o
461da177e4SLinus Torvaldsobj-$(CONFIG_BINFMT_IRIX)	+= binfmt_irix.o
471da177e4SLinus Torvaldsobj-$(CONFIG_MIPS32_COMPAT)	+= ioctl32.o linux32.o signal32.o
481da177e4SLinus Torvaldsobj-$(CONFIG_MIPS32_N32)	+= binfmt_elfn32.o scall64-n32.o signal_n32.o
491da177e4SLinus Torvaldsobj-$(CONFIG_MIPS32_O32)	+= binfmt_elfo32.o scall64-o32.o ptrace32.o
501da177e4SLinus Torvalds
511da177e4SLinus Torvaldsobj-$(CONFIG_KGDB)		+= gdb-low.o gdb-stub.o
521da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS)		+= proc.o
531da177e4SLinus Torvalds
54875d43e7SRalf Baechleobj-$(CONFIG_64BIT)		+= cpu-bugs64.o
551da177e4SLinus Torvalds
561da177e4SLinus Torvaldsobj-$(CONFIG_GEN_RTC)		+= genrtc.o
571da177e4SLinus Torvalds
581da177e4SLinus TorvaldsCFLAGS_cpu-bugs64.o	= $(shell if $(CC) $(CFLAGS) -Wa,-mdaddi -c -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi)
591da177e4SLinus TorvaldsCFLAGS_ioctl32.o	+= -Ifs/
601da177e4SLinus Torvalds
611da177e4SLinus TorvaldsEXTRA_AFLAGS := $(CFLAGS)
62