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 \ 864ac24e7SMatthew Wilcox ptrace.o reset.o setup.o signal.o syscall.o \ 9f5d6c63aSRalf Baechle time.o topology.o traps.o unaligned.o 101da177e4SLinus Torvalds 11217dd11eSRalf Baechleobj-$(CONFIG_CEVT_BCM1480) += cevt-bcm1480.o 1242f77542SRalf Baechleobj-$(CONFIG_CEVT_R4K) += cevt-r4k.o 136457d9fcSYoichi Yuasaobj-$(CONFIG_CEVT_DS1287) += cevt-ds1287.o 141097c6acSYoichi Yuasaobj-$(CONFIG_CEVT_GT641XX) += cevt-gt641xx.o 15217dd11eSRalf Baechleobj-$(CONFIG_CEVT_SB1250) += cevt-sb1250.o 16229f773eSAtsushi Nemotoobj-$(CONFIG_CEVT_TXX9) += cevt-txx9.o 17217dd11eSRalf Baechleobj-$(CONFIG_CSRC_BCM1480) += csrc-bcm1480.o 184247417dSYoichi Yuasaobj-$(CONFIG_CSRC_IOASIC) += csrc-ioasic.o 19940f6b48SRalf Baechleobj-$(CONFIG_CSRC_R4K) += csrc-r4k.o 20217dd11eSRalf Baechleobj-$(CONFIG_CSRC_SB1250) += csrc-sb1250.o 2139b8d525SRalf Baechleobj-$(CONFIG_SYNC_R4K) += sync-r4k.o 2242f77542SRalf Baechle 231da177e4SLinus Torvaldsbinfmt_irix-objs := irixelf.o irixinv.o irixioctl.o irixsig.o \ 241da177e4SLinus Torvalds irix5sys.o sysirix.o 251da177e4SLinus Torvalds 261df0f0ffSAtsushi Nemotoobj-$(CONFIG_STACKTRACE) += stacktrace.o 274e6a05feSThiemo Seuferobj-$(CONFIG_MODULES) += mips_ksyms.o module.o 281da177e4SLinus Torvalds 292a21c730SFuxin Zhangobj-$(CONFIG_CPU_LOONGSON2) += r4k_fpu.o r4k_switch.o 302a21c730SFuxin Zhangobj-$(CONFIG_CPU_MIPS32) += r4k_fpu.o r4k_switch.o 312a21c730SFuxin Zhangobj-$(CONFIG_CPU_MIPS64) += r4k_fpu.o r4k_switch.o 321da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R3000) += r2300_fpu.o r2300_switch.o 331da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R4000) += r4k_fpu.o r4k_switch.o 341da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R4300) += r4k_fpu.o r4k_switch.o 351da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R4X00) += r4k_fpu.o r4k_switch.o 361da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R5000) += r4k_fpu.o r4k_switch.o 372a21c730SFuxin Zhangobj-$(CONFIG_CPU_R6000) += r6000_fpu.o r4k_switch.o 381da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R5432) += r4k_fpu.o r4k_switch.o 391da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R8000) += r4k_fpu.o r4k_switch.o 401da177e4SLinus Torvaldsobj-$(CONFIG_CPU_RM7000) += r4k_fpu.o r4k_switch.o 411da177e4SLinus Torvaldsobj-$(CONFIG_CPU_RM9000) += r4k_fpu.o r4k_switch.o 421da177e4SLinus Torvaldsobj-$(CONFIG_CPU_NEVADA) += r4k_fpu.o r4k_switch.o 431da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R10000) += r4k_fpu.o r4k_switch.o 441da177e4SLinus Torvaldsobj-$(CONFIG_CPU_SB1) += r4k_fpu.o r4k_switch.o 452a21c730SFuxin Zhangobj-$(CONFIG_CPU_TX39XX) += r2300_fpu.o r2300_switch.o 462a21c730SFuxin Zhangobj-$(CONFIG_CPU_TX49XX) += r4k_fpu.o r4k_switch.o 472a21c730SFuxin Zhangobj-$(CONFIG_CPU_VR41XX) += r4k_fpu.o r4k_switch.o 481da177e4SLinus Torvalds 491da177e4SLinus Torvaldsobj-$(CONFIG_SMP) += smp.o 50940f6b48SRalf Baechleobj-$(CONFIG_SMP_UP) += smp-up.o 511da177e4SLinus Torvalds 5241c594abSRalf Baechleobj-$(CONFIG_MIPS_MT) += mips-mt.o 53295cbf6dSRalf Baechleobj-$(CONFIG_MIPS_MT_FPAFF) += mips-mt-fpaff.o 5441c594abSRalf Baechleobj-$(CONFIG_MIPS_MT_SMTC) += smtc.o smtc-asm.o smtc-proc.o 5541c594abSRalf Baechleobj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o 5639b8d525SRalf Baechleobj-$(CONFIG_MIPS_CMP) += smp-cmp.o 570b6d497fSChris Dearmanobj-$(CONFIG_CPU_MIPSR2) += spram.o 58340ee4b9SRalf Baechle 59e01402b1SRalf Baechleobj-$(CONFIG_MIPS_VPE_LOADER) += vpe.o 60e01402b1SRalf Baechleobj-$(CONFIG_MIPS_VPE_APSP_API) += rtlx.o 61*1928cc84SKevin D. Kissellobj-$(CONFIG_MIPS_APSP_KSPD) += kspd.o 62e01402b1SRalf Baechle 631da177e4SLinus Torvaldsobj-$(CONFIG_I8259) += i8259.o 641da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU) += irq_cpu.o 651da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o 661da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU_RM9K) += irq-rm9000.o 67e01402b1SRalf Baechleobj-$(CONFIG_MIPS_BOARDS_GEN) += irq-msc01.o 688420fd00SAtsushi Nemotoobj-$(CONFIG_IRQ_TXX9) += irq_txx9.o 69d5ab1a69SYoichi Yuasaobj-$(CONFIG_IRQ_GT641XX) += irq-gt641xx.o 7039b8d525SRalf Baechleobj-$(CONFIG_IRQ_GIC) += irq-gic.o 711da177e4SLinus Torvalds 72875d43e7SRalf Baechleobj-$(CONFIG_32BIT) += scall32-o32.o 73875d43e7SRalf Baechleobj-$(CONFIG_64BIT) += scall64-64.o 741da177e4SLinus Torvaldsobj-$(CONFIG_BINFMT_IRIX) += binfmt_irix.o 7538201fb2SRalf Baechleobj-$(CONFIG_MIPS32_COMPAT) += linux32.o ptrace32.o signal32.o 761da177e4SLinus Torvaldsobj-$(CONFIG_MIPS32_N32) += binfmt_elfn32.o scall64-n32.o signal_n32.o 7738201fb2SRalf Baechleobj-$(CONFIG_MIPS32_O32) += binfmt_elfo32.o scall64-o32.o 781da177e4SLinus Torvalds 791da177e4SLinus Torvaldsobj-$(CONFIG_KGDB) += gdb-low.o gdb-stub.o 801da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS) += proc.o 811da177e4SLinus Torvalds 82875d43e7SRalf Baechleobj-$(CONFIG_64BIT) += cpu-bugs64.o 831da177e4SLinus Torvalds 84d865bea4SRalf Baechleobj-$(CONFIG_I8253) += i8253.o 85e5c6c8e4SMichael Neuling 86a9aec7feSAtsushi Nemotoobj-$(CONFIG_GPIO_TXX9) += gpio_txx9.o 87a9aec7feSAtsushi Nemoto 88583bb86fSNicolas Schichanobj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o 8936a88530SRalf Baechleobj-$(CONFIG_EARLY_PRINTK) += early_printk.o 90583bb86fSNicolas Schichan 91a0f97e06SSam RavnborgCFLAGS_cpu-bugs64.o = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi) 92e7c4782fSRalf Baechle 93e7c4782fSRalf Baechleobj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o 94dde96ca8SRalf Baechle 95dde96ca8SRalf BaechleEXTRA_CFLAGS += -Werror 96