diff options
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 40 |
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 | |||
141 | cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \ | 141 | cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \ |
142 | -Wa,--trap | 142 | -Wa,--trap |
143 | 143 | ||
144 | cflags-$(CONFIG_CPU_R4000_WORKAROUNDS) += $(call cc-option,-mfix-r4000,) | ||
145 | cflags-$(CONFIG_CPU_R4400_WORKAROUNDS) += $(call cc-option,-mfix-r4400,) | ||
146 | cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,) | ||
147 | |||
144 | ifdef CONFIG_CPU_SB1 | 148 | ifdef CONFIG_CPU_SB1 |
145 | ifdef CONFIG_SB1_PASS_1_WORKAROUNDS | 149 | ifdef CONFIG_SB1_PASS_1_WORKAROUNDS |
146 | MODFLAGS += -msb1-pass1-workarounds | 150 | MODFLAGS += -msb1-pass1-workarounds |
@@ -152,6 +156,8 @@ endif | |||
152 | # | 156 | # |
153 | libs-$(CONFIG_ARC) += arch/mips/fw/arc/ | 157 | libs-$(CONFIG_ARC) += arch/mips/fw/arc/ |
154 | libs-$(CONFIG_CFE) += arch/mips/fw/cfe/ | 158 | libs-$(CONFIG_CFE) += arch/mips/fw/cfe/ |
159 | libs-$(CONFIG_SNIPROM) += arch/mips/fw/sni/ | ||
160 | libs-y += arch/mips/fw/lib/ | ||
155 | libs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/ | 161 | libs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/ |
156 | 162 | ||
157 | # | 163 | # |
@@ -308,7 +314,7 @@ core-$(CONFIG_MIPS_ATLAS) += arch/mips/mips-boards/atlas/ | |||
308 | cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-atlas | 314 | cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-atlas |
309 | cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-mips | 315 | cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-mips |
310 | load-$(CONFIG_MIPS_ATLAS) += 0xffffffff80100000 | 316 | load-$(CONFIG_MIPS_ATLAS) += 0xffffffff80100000 |
311 | all-$(CONFIG_MIPS_ATLAS) := vmlinux.srec | 317 | all-$(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 | |||
316 | core-$(CONFIG_MIPS_MALTA) += arch/mips/mips-boards/malta/ | 322 | core-$(CONFIG_MIPS_MALTA) += arch/mips/mips-boards/malta/ |
317 | cflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-mips | 323 | cflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-mips |
318 | load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 | 324 | load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 |
319 | all-$(CONFIG_MIPS_MALTA) := vmlinux.srec | 325 | all-$(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 | |||
349 | load-$(CONFIG_PMC_YOSEMITE) += 0xffffffff80100000 | 355 | load-$(CONFIG_PMC_YOSEMITE) += 0xffffffff80100000 |
350 | 356 | ||
351 | # | 357 | # |
352 | # Qemu simulating MIPS32 4Kc | ||
353 | # | ||
354 | core-$(CONFIG_QEMU) += arch/mips/qemu/ | ||
355 | cflags-$(CONFIG_QEMU) += -Iinclude/asm-mips/mach-qemu | ||
356 | load-$(CONFIG_QEMU) += 0xffffffff80010000 | ||
357 | all-$(CONFIG_QEMU) := vmlinux.bin | ||
358 | |||
359 | # | ||
360 | # Basler eXcite | 358 | # Basler eXcite |
361 | # | 359 | # |
362 | core-$(CONFIG_BASLER_EXCITE) += arch/mips/basler/excite/ | 360 | core-$(CONFIG_BASLER_EXCITE) += arch/mips/basler/excite/ |
@@ -475,6 +473,20 @@ endif | |||
475 | endif | 473 | endif |
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 | ||
484 | core-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/ | ||
485 | cflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=1 -Iinclude/asm-mips/mach-ip28 | ||
486 | #cflags-$(CONFIG_SGI_IP28) += -Iinclude/asm-mips/mach-ip28 | ||
487 | load-$(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 |
610 | endif | 624 | endif |