blob: ffa08362de170d3c09790b4511c6cdd5f973f6bc [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the Linux/MIPS kernel.
3#
4
5extra-y := head.o init_task.o vmlinux.lds
6
7obj-y += cpu-probe.o branch.o entry.o genex.o irq.o process.o \
8 ptrace.o reset.o semaphore.o setup.o signal.o syscall.o \
Ralf Baechlef5d6c632006-11-29 15:04:08 +00009 time.o topology.o traps.o unaligned.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Ralf Baechle217dd112007-11-01 01:57:55 +000011obj-$(CONFIG_CEVT_BCM1480) += cevt-bcm1480.o
Ralf Baechle42f77542007-10-18 17:48:11 +010012obj-$(CONFIG_CEVT_R4K) += cevt-r4k.o
Yoichi Yuasa1097c6a2007-10-22 19:43:15 +090013obj-$(CONFIG_CEVT_GT641XX) += cevt-gt641xx.o
Ralf Baechle217dd112007-11-01 01:57:55 +000014obj-$(CONFIG_CEVT_SB1250) += cevt-sb1250.o
Atsushi Nemoto229f7732007-10-25 01:34:09 +090015obj-$(CONFIG_CEVT_TXX9) += cevt-txx9.o
Ralf Baechle217dd112007-11-01 01:57:55 +000016obj-$(CONFIG_CSRC_BCM1480) += csrc-bcm1480.o
Ralf Baechle940f6b42007-11-24 22:33:28 +000017obj-$(CONFIG_CSRC_R4K) += csrc-r4k.o
Ralf Baechle217dd112007-11-01 01:57:55 +000018obj-$(CONFIG_CSRC_SB1250) += csrc-sb1250.o
Ralf Baechle42f77542007-10-18 17:48:11 +010019
Linus Torvalds1da177e2005-04-16 15:20:36 -070020binfmt_irix-objs := irixelf.o irixinv.o irixioctl.o irixsig.o \
21 irix5sys.o sysirix.o
22
Atsushi Nemoto1df0f0f2006-09-26 23:44:01 +090023obj-$(CONFIG_STACKTRACE) += stacktrace.o
Thiemo Seufer4e6a05f2005-02-21 10:45:09 +000024obj-$(CONFIG_MODULES) += mips_ksyms.o module.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
Fuxin Zhang2a21c732007-06-06 14:52:43 +080026obj-$(CONFIG_CPU_LOONGSON2) += r4k_fpu.o r4k_switch.o
27obj-$(CONFIG_CPU_MIPS32) += r4k_fpu.o r4k_switch.o
28obj-$(CONFIG_CPU_MIPS64) += r4k_fpu.o r4k_switch.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070029obj-$(CONFIG_CPU_R3000) += r2300_fpu.o r2300_switch.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070030obj-$(CONFIG_CPU_R4000) += r4k_fpu.o r4k_switch.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070031obj-$(CONFIG_CPU_R4300) += r4k_fpu.o r4k_switch.o
32obj-$(CONFIG_CPU_R4X00) += r4k_fpu.o r4k_switch.o
33obj-$(CONFIG_CPU_R5000) += r4k_fpu.o r4k_switch.o
Fuxin Zhang2a21c732007-06-06 14:52:43 +080034obj-$(CONFIG_CPU_R6000) += r6000_fpu.o r4k_switch.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070035obj-$(CONFIG_CPU_R5432) += r4k_fpu.o r4k_switch.o
36obj-$(CONFIG_CPU_R8000) += r4k_fpu.o r4k_switch.o
37obj-$(CONFIG_CPU_RM7000) += r4k_fpu.o r4k_switch.o
38obj-$(CONFIG_CPU_RM9000) += r4k_fpu.o r4k_switch.o
39obj-$(CONFIG_CPU_NEVADA) += r4k_fpu.o r4k_switch.o
40obj-$(CONFIG_CPU_R10000) += r4k_fpu.o r4k_switch.o
41obj-$(CONFIG_CPU_SB1) += r4k_fpu.o r4k_switch.o
Fuxin Zhang2a21c732007-06-06 14:52:43 +080042obj-$(CONFIG_CPU_TX39XX) += r2300_fpu.o r2300_switch.o
43obj-$(CONFIG_CPU_TX49XX) += r4k_fpu.o r4k_switch.o
44obj-$(CONFIG_CPU_VR41XX) += r4k_fpu.o r4k_switch.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
46obj-$(CONFIG_SMP) += smp.o
Ralf Baechle940f6b42007-11-24 22:33:28 +000047obj-$(CONFIG_SMP_UP) += smp-up.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
Ralf Baechle41c594a2006-04-05 09:45:45 +010049obj-$(CONFIG_MIPS_MT) += mips-mt.o
Ralf Baechle295cbf62007-07-03 14:37:43 +010050obj-$(CONFIG_MIPS_MT_FPAFF) += mips-mt-fpaff.o
Ralf Baechle41c594a2006-04-05 09:45:45 +010051obj-$(CONFIG_MIPS_MT_SMTC) += smtc.o smtc-asm.o smtc-proc.o
52obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o
Ralf Baechle340ee4b2005-08-17 17:44:08 +000053
Ralf Baechle26009902006-04-05 09:45:45 +010054obj-$(CONFIG_MIPS_APSP_KSPD) += kspd.o
Ralf Baechlee01402b2005-07-14 15:57:16 +000055obj-$(CONFIG_MIPS_VPE_LOADER) += vpe.o
56obj-$(CONFIG_MIPS_VPE_APSP_API) += rtlx.o
57
Linus Torvalds1da177e2005-04-16 15:20:36 -070058obj-$(CONFIG_I8259) += i8259.o
59obj-$(CONFIG_IRQ_CPU) += irq_cpu.o
60obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o
61obj-$(CONFIG_IRQ_CPU_RM9K) += irq-rm9000.o
Ralf Baechlee01402b2005-07-14 15:57:16 +000062obj-$(CONFIG_MIPS_BOARDS_GEN) += irq-msc01.o
Atsushi Nemoto8420fd02007-08-02 23:35:53 +090063obj-$(CONFIG_IRQ_TXX9) += irq_txx9.o
Yoichi Yuasad5ab1a62007-09-13 23:51:26 +090064obj-$(CONFIG_IRQ_GT641XX) += irq-gt641xx.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070065
Ralf Baechle875d43e2005-09-03 15:56:16 -070066obj-$(CONFIG_32BIT) += scall32-o32.o
67obj-$(CONFIG_64BIT) += scall64-64.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070068obj-$(CONFIG_BINFMT_IRIX) += binfmt_irix.o
Ralf Baechle38201fb2007-02-15 01:53:00 +000069obj-$(CONFIG_MIPS32_COMPAT) += linux32.o ptrace32.o signal32.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070070obj-$(CONFIG_MIPS32_N32) += binfmt_elfn32.o scall64-n32.o signal_n32.o
Ralf Baechle38201fb2007-02-15 01:53:00 +000071obj-$(CONFIG_MIPS32_O32) += binfmt_elfo32.o scall64-o32.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070072
73obj-$(CONFIG_KGDB) += gdb-low.o gdb-stub.o
74obj-$(CONFIG_PROC_FS) += proc.o
75
Ralf Baechle875d43e2005-09-03 15:56:16 -070076obj-$(CONFIG_64BIT) += cpu-bugs64.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070077
Ralf Baechled865bea2007-10-11 23:46:10 +010078obj-$(CONFIG_I8253) += i8253.o
Ralf Baechlede61b542007-07-12 17:41:23 +010079obj-$(CONFIG_PCSPEAKER) += pcspeaker.o
Michael Neulinge5c6c8e2006-03-14 00:11:50 -050080
Nicolas Schichan583bb862006-10-18 15:14:55 +020081obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
Ralf Baechle36a88532007-03-01 11:56:43 +000082obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
Nicolas Schichan583bb862006-10-18 15:14:55 +020083
Sam Ravnborga0f97e02007-10-14 22:21:35 +020084CFLAGS_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)
Ralf Baechlee7c47822007-07-10 17:33:01 +010085
86obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o
Ralf Baechledde96ca2007-07-30 11:48:58 +010087
88EXTRA_CFLAGS += -Werror