xref: /linux/arch/mips/kernel/Makefile (revision c1bf207d6ee1eb72e9c10365edbdc7c9ff7fb9b0)
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 \
9c52d0d30SDavid Daney		   time.o topology.o traps.o unaligned.o watch.o vdso.o
101da177e4SLinus Torvalds
11d2bb0762SWu Zhangjinifdef CONFIG_FUNCTION_TRACER
12538f1952SWu ZhangjinCFLAGS_REMOVE_ftrace.o = -pg
13d2bb0762SWu ZhangjinCFLAGS_REMOVE_early_printk.o = -pg
14d2bb0762SWu Zhangjinendif
15d2bb0762SWu Zhangjin
16217dd11eSRalf Baechleobj-$(CONFIG_CEVT_BCM1480)	+= cevt-bcm1480.o
17779e7d41SManuel Laussobj-$(CONFIG_CEVT_R4K_LIB)	+= cevt-r4k.o
188531a35eSKevin D. Kissellobj-$(CONFIG_MIPS_MT_SMTC)	+= cevt-smtc.o
196457d9fcSYoichi Yuasaobj-$(CONFIG_CEVT_DS1287)	+= cevt-ds1287.o
201097c6acSYoichi Yuasaobj-$(CONFIG_CEVT_GT641XX)	+= cevt-gt641xx.o
21217dd11eSRalf Baechleobj-$(CONFIG_CEVT_SB1250)	+= cevt-sb1250.o
22229f773eSAtsushi Nemotoobj-$(CONFIG_CEVT_TXX9)		+= cevt-txx9.o
23217dd11eSRalf Baechleobj-$(CONFIG_CSRC_BCM1480)	+= csrc-bcm1480.o
244247417dSYoichi Yuasaobj-$(CONFIG_CSRC_IOASIC)	+= csrc-ioasic.o
25a3a0f8c8SDavid VomLehnobj-$(CONFIG_CSRC_POWERTV)	+= csrc-powertv.o
26779e7d41SManuel Laussobj-$(CONFIG_CSRC_R4K_LIB)	+= csrc-r4k.o
27217dd11eSRalf Baechleobj-$(CONFIG_CSRC_SB1250)	+= csrc-sb1250.o
2839b8d525SRalf Baechleobj-$(CONFIG_SYNC_R4K)		+= sync-r4k.o
2942f77542SRalf Baechle
301df0f0ffSAtsushi Nemotoobj-$(CONFIG_STACKTRACE)	+= stacktrace.o
314e6a05feSThiemo Seuferobj-$(CONFIG_MODULES)		+= mips_ksyms.o module.o
321da177e4SLinus Torvalds
33538f1952SWu Zhangjinobj-$(CONFIG_FUNCTION_TRACER)	+= mcount.o ftrace.o
34d2bb0762SWu Zhangjin
352a21c730SFuxin Zhangobj-$(CONFIG_CPU_LOONGSON2)	+= r4k_fpu.o r4k_switch.o
362a21c730SFuxin Zhangobj-$(CONFIG_CPU_MIPS32)	+= r4k_fpu.o r4k_switch.o
372a21c730SFuxin Zhangobj-$(CONFIG_CPU_MIPS64)	+= r4k_fpu.o r4k_switch.o
381da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R3000)		+= r2300_fpu.o r2300_switch.o
391da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R4300)		+= r4k_fpu.o r4k_switch.o
401da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R4X00)		+= r4k_fpu.o r4k_switch.o
411da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R5000)		+= r4k_fpu.o r4k_switch.o
422a21c730SFuxin Zhangobj-$(CONFIG_CPU_R6000)		+= r6000_fpu.o r4k_switch.o
431da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R5432)		+= r4k_fpu.o r4k_switch.o
44542c1020SShinya Kuribayashiobj-$(CONFIG_CPU_R5500)		+= r4k_fpu.o r4k_switch.o
451da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R8000)		+= r4k_fpu.o r4k_switch.o
461da177e4SLinus Torvaldsobj-$(CONFIG_CPU_RM7000)	+= r4k_fpu.o r4k_switch.o
471da177e4SLinus Torvaldsobj-$(CONFIG_CPU_RM9000)	+= r4k_fpu.o r4k_switch.o
481da177e4SLinus Torvaldsobj-$(CONFIG_CPU_NEVADA)	+= r4k_fpu.o r4k_switch.o
491da177e4SLinus Torvaldsobj-$(CONFIG_CPU_R10000)	+= r4k_fpu.o r4k_switch.o
501da177e4SLinus Torvaldsobj-$(CONFIG_CPU_SB1)		+= r4k_fpu.o r4k_switch.o
512a21c730SFuxin Zhangobj-$(CONFIG_CPU_TX39XX)	+= r2300_fpu.o r2300_switch.o
522a21c730SFuxin Zhangobj-$(CONFIG_CPU_TX49XX)	+= r4k_fpu.o r4k_switch.o
532a21c730SFuxin Zhangobj-$(CONFIG_CPU_VR41XX)	+= r4k_fpu.o r4k_switch.o
547e69deb8SDavid Daneyobj-$(CONFIG_CPU_CAVIUM_OCTEON)	+= octeon_switch.o
551da177e4SLinus Torvalds
561da177e4SLinus Torvaldsobj-$(CONFIG_SMP)		+= smp.o
57940f6b48SRalf Baechleobj-$(CONFIG_SMP_UP)		+= smp-up.o
581da177e4SLinus Torvalds
5941c594abSRalf Baechleobj-$(CONFIG_MIPS_MT)		+= mips-mt.o
60295cbf6dSRalf Baechleobj-$(CONFIG_MIPS_MT_FPAFF)	+= mips-mt-fpaff.o
6141c594abSRalf Baechleobj-$(CONFIG_MIPS_MT_SMTC)	+= smtc.o smtc-asm.o smtc-proc.o
6241c594abSRalf Baechleobj-$(CONFIG_MIPS_MT_SMP)	+= smp-mt.o
6339b8d525SRalf Baechleobj-$(CONFIG_MIPS_CMP)		+= smp-cmp.o
640b6d497fSChris Dearmanobj-$(CONFIG_CPU_MIPSR2)	+= spram.o
65340ee4b9SRalf Baechle
66e01402b1SRalf Baechleobj-$(CONFIG_MIPS_VPE_LOADER)	+= vpe.o
67e01402b1SRalf Baechleobj-$(CONFIG_MIPS_VPE_APSP_API)	+= rtlx.o
681928cc84SKevin D. Kissellobj-$(CONFIG_MIPS_APSP_KSPD)	+= kspd.o
69e01402b1SRalf Baechle
701da177e4SLinus Torvaldsobj-$(CONFIG_I8259)		+= i8259.o
711da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU)		+= irq_cpu.o
721da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU_RM7K)	+= irq-rm7000.o
731da177e4SLinus Torvaldsobj-$(CONFIG_IRQ_CPU_RM9K)	+= irq-rm9000.o
74d5deda6fSRalf Baechleobj-$(CONFIG_MIPS_MSC)		+= irq-msc01.o
758420fd00SAtsushi Nemotoobj-$(CONFIG_IRQ_TXX9)		+= irq_txx9.o
76d5ab1a69SYoichi Yuasaobj-$(CONFIG_IRQ_GT641XX)	+= irq-gt641xx.o
7739b8d525SRalf Baechleobj-$(CONFIG_IRQ_GIC)		+= irq-gic.o
781da177e4SLinus Torvalds
79*c1bf207dSDavid Daneyobj-$(CONFIG_KPROBES)		+= kprobes.o
80875d43e7SRalf Baechleobj-$(CONFIG_32BIT)		+= scall32-o32.o
81875d43e7SRalf Baechleobj-$(CONFIG_64BIT)		+= scall64-64.o
8238201fb2SRalf Baechleobj-$(CONFIG_MIPS32_COMPAT)	+= linux32.o ptrace32.o signal32.o
831da177e4SLinus Torvaldsobj-$(CONFIG_MIPS32_N32)	+= binfmt_elfn32.o scall64-n32.o signal_n32.o
8438201fb2SRalf Baechleobj-$(CONFIG_MIPS32_O32)	+= binfmt_elfo32.o scall64-o32.o
851da177e4SLinus Torvalds
8688547001SJason Wesselobj-$(CONFIG_KGDB)		+= kgdb.o
871da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS)		+= proc.o
881da177e4SLinus Torvalds
89875d43e7SRalf Baechleobj-$(CONFIG_64BIT)		+= cpu-bugs64.o
901da177e4SLinus Torvalds
91d865bea4SRalf Baechleobj-$(CONFIG_I8253)		+= i8253.o
92e5c6c8e4SMichael Neuling
93a9aec7feSAtsushi Nemotoobj-$(CONFIG_GPIO_TXX9)		+= gpio_txx9.o
94a9aec7feSAtsushi Nemoto
95583bb86fSNicolas Schichanobj-$(CONFIG_KEXEC)		+= machine_kexec.o relocate_kernel.o
9636a88530SRalf Baechleobj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
97bba90760SDavid Daneyobj-$(CONFIG_SPINLOCK_TEST)	+= spinlock_test.o
98583bb86fSNicolas Schichan
99a0f97e06SSam 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)
100e7c4782fSRalf Baechle
101e7c4782fSRalf Baechleobj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT)	+= 8250-platform.o
102dde96ca8SRalf Baechle
103f8ede0f7SWu Zhangjinobj-$(CONFIG_MIPS_CPUFREQ)	+= cpufreq/
104f8ede0f7SWu Zhangjin
105cf72e947SRalf BaechleCPPFLAGS_vmlinux.lds		:= $(KBUILD_CFLAGS)
106