aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile40
1 files changed, 27 insertions, 13 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index a1f8d8b96b03..3fb7f3065c92 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -141,6 +141,10 @@ cflags-$(CONFIG_CPU_R8000) += -march=r8000 -Wa,--trap
141cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \ 141cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \
142 -Wa,--trap 142 -Wa,--trap
143 143
144cflags-$(CONFIG_CPU_R4000_WORKAROUNDS) += $(call cc-option,-mfix-r4000,)
145cflags-$(CONFIG_CPU_R4400_WORKAROUNDS) += $(call cc-option,-mfix-r4400,)
146cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,)
147
144ifdef CONFIG_CPU_SB1 148ifdef CONFIG_CPU_SB1
145ifdef CONFIG_SB1_PASS_1_WORKAROUNDS 149ifdef CONFIG_SB1_PASS_1_WORKAROUNDS
146MODFLAGS += -msb1-pass1-workarounds 150MODFLAGS += -msb1-pass1-workarounds
@@ -152,6 +156,8 @@ endif
152# 156#
153libs-$(CONFIG_ARC) += arch/mips/fw/arc/ 157libs-$(CONFIG_ARC) += arch/mips/fw/arc/
154libs-$(CONFIG_CFE) += arch/mips/fw/cfe/ 158libs-$(CONFIG_CFE) += arch/mips/fw/cfe/
159libs-$(CONFIG_SNIPROM) += arch/mips/fw/sni/
160libs-y += arch/mips/fw/lib/
155libs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/ 161libs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/
156 162
157# 163#
@@ -308,7 +314,7 @@ core-$(CONFIG_MIPS_ATLAS) += arch/mips/mips-boards/atlas/
308cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-atlas 314cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-atlas
309cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-mips 315cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-mips
310load-$(CONFIG_MIPS_ATLAS) += 0xffffffff80100000 316load-$(CONFIG_MIPS_ATLAS) += 0xffffffff80100000
311all-$(CONFIG_MIPS_ATLAS) := vmlinux.srec 317all-$(CONFIG_MIPS_ATLAS) := vmlinux.bin
312 318
313# 319#
314# MIPS Malta board 320# MIPS Malta board
@@ -316,7 +322,7 @@ all-$(CONFIG_MIPS_ATLAS) := vmlinux.srec
316core-$(CONFIG_MIPS_MALTA) += arch/mips/mips-boards/malta/ 322core-$(CONFIG_MIPS_MALTA) += arch/mips/mips-boards/malta/
317cflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-mips 323cflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-mips
318load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 324load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000
319all-$(CONFIG_MIPS_MALTA) := vmlinux.srec 325all-$(CONFIG_MIPS_MALTA) := vmlinux.bin
320 326
321# 327#
322# MIPS SEAD board 328# MIPS SEAD board
@@ -349,14 +355,6 @@ cflags-$(CONFIG_PMC_YOSEMITE) += -Iinclude/asm-mips/mach-yosemite
349load-$(CONFIG_PMC_YOSEMITE) += 0xffffffff80100000 355load-$(CONFIG_PMC_YOSEMITE) += 0xffffffff80100000
350 356
351# 357#
352# Qemu simulating MIPS32 4Kc
353#
354core-$(CONFIG_QEMU) += arch/mips/qemu/
355cflags-$(CONFIG_QEMU) += -Iinclude/asm-mips/mach-qemu
356load-$(CONFIG_QEMU) += 0xffffffff80010000
357all-$(CONFIG_QEMU) := vmlinux.bin
358
359#
360# Basler eXcite 358# Basler eXcite
361# 359#
362core-$(CONFIG_BASLER_EXCITE) += arch/mips/basler/excite/ 360core-$(CONFIG_BASLER_EXCITE) += arch/mips/basler/excite/
@@ -475,6 +473,20 @@ endif
475endif 473endif
476 474
477# 475#
476# SGI IP28 (Indigo2 R10k)
477#
478# Set the load address to >= 0xa800000020080000 if you want to leave space for
479# symmon, 0xa800000020004000 for production kernels ? Note that the value must
480# be 16kb aligned or the handling of the current variable will break.
481# Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys
482#
483#core-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/ arch/mips/arc/arc_con.o
484core-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/
485cflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=1 -Iinclude/asm-mips/mach-ip28
486#cflags-$(CONFIG_SGI_IP28) += -Iinclude/asm-mips/mach-ip28
487load-$(CONFIG_SGI_IP28) += 0xa800000020004000
488
489#
478# SGI-IP32 (O2) 490# SGI-IP32 (O2)
479# 491#
480# Set the load address to >= 80069000 if you want to leave space for symmon, 492# Set the load address to >= 80069000 if you want to leave space for symmon,
@@ -602,9 +614,11 @@ ifdef CONFIG_64BIT
602 endif 614 endif
603 endif 615 endif
604 616
605 ifeq ($(KBUILD_SYM32), y) 617 ifeq ($(KBUILD_SYM32)$(call cc-option-yn,-msym32), yy)
606 ifeq ($(call cc-option-yn,-msym32), y) 618 cflags-y += -msym32 -DKBUILD_64BIT_SYM32
607 cflags-y += -msym32 -DKBUILD_64BIT_SYM32 619 else
620 ifeq ($(CONFIG_CPU_DADDI_WORKAROUNDS), y)
621 $(error CONFIG_CPU_DADDI_WORKAROUNDS unsupported without -msym32)
608 endif 622 endif
609 endif 623 endif
610endif 624endif