diff options
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 65 |
1 files changed, 16 insertions, 49 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index a9a987a06daf..32c1c8fb6f98 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 |
@@ -332,17 +337,6 @@ cflags-$(CONFIG_MIPS_SIM) += -Iinclude/asm-mips/mach-mipssim | |||
332 | load-$(CONFIG_MIPS_SIM) += 0x80100000 | 337 | load-$(CONFIG_MIPS_SIM) += 0x80100000 |
333 | 338 | ||
334 | # | 339 | # |
335 | # Momentum Ocelot board | ||
336 | # | ||
337 | # The Ocelot setup.o must be linked early - it does the ioremap() for the | ||
338 | # mips_io_port_base. | ||
339 | # | ||
340 | core-$(CONFIG_MOMENCO_OCELOT) += arch/mips/gt64120/common/ \ | ||
341 | arch/mips/gt64120/momenco_ocelot/ | ||
342 | cflags-$(CONFIG_MOMENCO_OCELOT) += -Iinclude/asm-mips/mach-ocelot | ||
343 | load-$(CONFIG_MOMENCO_OCELOT) += 0xffffffff80100000 | ||
344 | |||
345 | # | ||
346 | # PMC-Sierra MSP SOCs | 340 | # PMC-Sierra MSP SOCs |
347 | # | 341 | # |
348 | core-$(CONFIG_PMC_MSP) += arch/mips/pmc-sierra/msp71xx/ | 342 | core-$(CONFIG_PMC_MSP) += arch/mips/pmc-sierra/msp71xx/ |
@@ -363,6 +357,7 @@ load-$(CONFIG_PMC_YOSEMITE) += 0xffffffff80100000 | |||
363 | core-$(CONFIG_QEMU) += arch/mips/qemu/ | 357 | core-$(CONFIG_QEMU) += arch/mips/qemu/ |
364 | cflags-$(CONFIG_QEMU) += -Iinclude/asm-mips/mach-qemu | 358 | cflags-$(CONFIG_QEMU) += -Iinclude/asm-mips/mach-qemu |
365 | load-$(CONFIG_QEMU) += 0xffffffff80010000 | 359 | load-$(CONFIG_QEMU) += 0xffffffff80010000 |
360 | all-$(CONFIG_QEMU) := vmlinux.bin | ||
366 | 361 | ||
367 | # | 362 | # |
368 | # Basler eXcite | 363 | # Basler eXcite |
@@ -372,17 +367,6 @@ cflags-$(CONFIG_BASLER_EXCITE) += -Iinclude/asm-mips/mach-excite | |||
372 | load-$(CONFIG_BASLER_EXCITE) += 0x80100000 | 367 | load-$(CONFIG_BASLER_EXCITE) += 0x80100000 |
373 | 368 | ||
374 | # | 369 | # |
375 | # NEC DDB | ||
376 | # | ||
377 | core-$(CONFIG_DDB5XXX_COMMON) += arch/mips/ddb5xxx/common/ | ||
378 | |||
379 | # | ||
380 | # NEC DDB Vrc-5477 | ||
381 | # | ||
382 | core-$(CONFIG_DDB5477) += arch/mips/ddb5xxx/ddb5477/ | ||
383 | load-$(CONFIG_DDB5477) += 0xffffffff80100000 | ||
384 | |||
385 | # | ||
386 | # Common VR41xx | 370 | # Common VR41xx |
387 | # | 371 | # |
388 | core-$(CONFIG_MACH_VR41XX) += arch/mips/vr41xx/common/ | 372 | core-$(CONFIG_MACH_VR41XX) += arch/mips/vr41xx/common/ |
@@ -554,6 +538,7 @@ load-$(CONFIG_SIBYTE_BIGSUR) := 0xffffffff80100000 | |||
554 | core-$(CONFIG_SNI_RM) += arch/mips/sni/ | 538 | core-$(CONFIG_SNI_RM) += arch/mips/sni/ |
555 | cflags-$(CONFIG_SNI_RM) += -Iinclude/asm-mips/mach-rm | 539 | cflags-$(CONFIG_SNI_RM) += -Iinclude/asm-mips/mach-rm |
556 | load-$(CONFIG_SNI_RM) += 0xffffffff80600000 | 540 | load-$(CONFIG_SNI_RM) += 0xffffffff80600000 |
541 | all-$(CONFIG_SNI_RM) := vmlinux.ecoff | ||
557 | 542 | ||
558 | # | 543 | # |
559 | # Toshiba JMR-TX3927 board | 544 | # Toshiba JMR-TX3927 board |
@@ -647,33 +632,7 @@ vmlinux.64: vmlinux | |||
647 | 632 | ||
648 | makeboot =$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) $(1) | 633 | makeboot =$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) $(1) |
649 | 634 | ||
650 | ifdef CONFIG_BOOT_ELF32 | 635 | 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 | 636 | ||
678 | vmlinux.bin: $(vmlinux-32) | 637 | vmlinux.bin: $(vmlinux-32) |
679 | +@$(call makeboot,$@) | 638 | +@$(call makeboot,$@) |
@@ -700,6 +659,14 @@ endif | |||
700 | archclean: | 659 | archclean: |
701 | @$(MAKE) $(clean)=arch/mips/boot | 660 | @$(MAKE) $(clean)=arch/mips/boot |
702 | 661 | ||
662 | define archhelp | ||
663 | echo ' vmlinux.ecoff - ECOFF boot image' | ||
664 | echo ' vmlinux.bin - Raw binary boot image' | ||
665 | echo ' vmlinux.srec - SREC boot image' | ||
666 | echo | ||
667 | echo ' These will be default as apropriate for a configured platform.' | ||
668 | endef | ||
669 | |||
703 | CLEAN_FILES += vmlinux.32 \ | 670 | CLEAN_FILES += vmlinux.32 \ |
704 | vmlinux.64 \ | 671 | vmlinux.64 \ |
705 | vmlinux.ecoff | 672 | vmlinux.ecoff |