diff options
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index a9a987a06daf..2cfb21c3ac6e 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -67,6 +67,8 @@ cflags-y += $(call cc-option,-msym32) | |||
67 | endif | 67 | endif |
68 | endif | 68 | endif |
69 | 69 | ||
70 | all-$(CONFIG_BOOT_ELF32) := $(vmlinux-32) | ||
71 | all-$(CONFIG_BOOT_ELF64) := $(vmlinux-64) | ||
70 | 72 | ||
71 | # | 73 | # |
72 | # GCC uses -G 0 -mabicalls -fpic as default. We don't want PIC in the kernel | 74 | # GCC uses -G 0 -mabicalls -fpic as default. We don't want PIC in the kernel |
@@ -309,6 +311,7 @@ core-$(CONFIG_MIPS_ATLAS) += arch/mips/mips-boards/atlas/ | |||
309 | cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-atlas | 311 | cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-atlas |
310 | cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-mips | 312 | cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-mips |
311 | load-$(CONFIG_MIPS_ATLAS) += 0xffffffff80100000 | 313 | load-$(CONFIG_MIPS_ATLAS) += 0xffffffff80100000 |
314 | all-$(CONFIG_MIPS_ATLAS) := vmlinux.srec | ||
312 | 315 | ||
313 | # | 316 | # |
314 | # MIPS Malta board | 317 | # MIPS Malta board |
@@ -316,6 +319,7 @@ load-$(CONFIG_MIPS_ATLAS) += 0xffffffff80100000 | |||
316 | core-$(CONFIG_MIPS_MALTA) += arch/mips/mips-boards/malta/ | 319 | core-$(CONFIG_MIPS_MALTA) += arch/mips/mips-boards/malta/ |
317 | cflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-mips | 320 | cflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-mips |
318 | load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 | 321 | load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 |
322 | all-$(CONFIG_MIPS_MALTA) := vmlinux.srec | ||
319 | 323 | ||
320 | # | 324 | # |
321 | # MIPS SEAD board | 325 | # MIPS SEAD board |
@@ -323,6 +327,7 @@ load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 | |||
323 | core-$(CONFIG_MIPS_SEAD) += arch/mips/mips-boards/sead/ | 327 | core-$(CONFIG_MIPS_SEAD) += arch/mips/mips-boards/sead/ |
324 | cflags-$(CONFIG_MIPS_SEAD) += -Iinclude/asm-mips/mach-mips | 328 | cflags-$(CONFIG_MIPS_SEAD) += -Iinclude/asm-mips/mach-mips |
325 | load-$(CONFIG_MIPS_SEAD) += 0xffffffff80100000 | 329 | load-$(CONFIG_MIPS_SEAD) += 0xffffffff80100000 |
330 | all-$(CONFIG_MIPS_SEAD) := vmlinux.srec | ||
326 | 331 | ||
327 | # | 332 | # |
328 | # MIPS SIM | 333 | # MIPS SIM |
@@ -363,6 +368,7 @@ load-$(CONFIG_PMC_YOSEMITE) += 0xffffffff80100000 | |||
363 | core-$(CONFIG_QEMU) += arch/mips/qemu/ | 368 | core-$(CONFIG_QEMU) += arch/mips/qemu/ |
364 | cflags-$(CONFIG_QEMU) += -Iinclude/asm-mips/mach-qemu | 369 | cflags-$(CONFIG_QEMU) += -Iinclude/asm-mips/mach-qemu |
365 | load-$(CONFIG_QEMU) += 0xffffffff80010000 | 370 | load-$(CONFIG_QEMU) += 0xffffffff80010000 |
371 | all-$(CONFIG_QEMU) := vmlinux.bin | ||
366 | 372 | ||
367 | # | 373 | # |
368 | # Basler eXcite | 374 | # Basler eXcite |
@@ -554,6 +560,7 @@ load-$(CONFIG_SIBYTE_BIGSUR) := 0xffffffff80100000 | |||
554 | core-$(CONFIG_SNI_RM) += arch/mips/sni/ | 560 | core-$(CONFIG_SNI_RM) += arch/mips/sni/ |
555 | cflags-$(CONFIG_SNI_RM) += -Iinclude/asm-mips/mach-rm | 561 | cflags-$(CONFIG_SNI_RM) += -Iinclude/asm-mips/mach-rm |
556 | load-$(CONFIG_SNI_RM) += 0xffffffff80600000 | 562 | load-$(CONFIG_SNI_RM) += 0xffffffff80600000 |
563 | all-$(CONFIG_SNI_RM) := vmlinux.ecoff | ||
557 | 564 | ||
558 | # | 565 | # |
559 | # Toshiba JMR-TX3927 board | 566 | # Toshiba JMR-TX3927 board |
@@ -647,33 +654,7 @@ vmlinux.64: vmlinux | |||
647 | 654 | ||
648 | makeboot =$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) $(1) | 655 | makeboot =$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) $(1) |
649 | 656 | ||
650 | ifdef CONFIG_BOOT_ELF32 | 657 | all: $(all-y) |
651 | all: $(vmlinux-32) | ||
652 | endif | ||
653 | |||
654 | ifdef CONFIG_BOOT_ELF64 | ||
655 | all: $(vmlinux-64) | ||
656 | endif | ||
657 | |||
658 | ifdef CONFIG_MIPS_ATLAS | ||
659 | all: vmlinux.srec | ||
660 | endif | ||
661 | |||
662 | ifdef CONFIG_MIPS_MALTA | ||
663 | all: vmlinux.srec | ||
664 | endif | ||
665 | |||
666 | ifdef CONFIG_MIPS_SEAD | ||
667 | all: vmlinux.srec | ||
668 | endif | ||
669 | |||
670 | ifdef CONFIG_QEMU | ||
671 | all: vmlinux.bin | ||
672 | endif | ||
673 | |||
674 | ifdef CONFIG_SNI_RM | ||
675 | all: vmlinux.ecoff | ||
676 | endif | ||
677 | 658 | ||
678 | vmlinux.bin: $(vmlinux-32) | 659 | vmlinux.bin: $(vmlinux-32) |
679 | +@$(call makeboot,$@) | 660 | +@$(call makeboot,$@) |