aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-07-22 01:46:02 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:31:56 -0400
commit154b500b1981a8053a15cd8e749a955a9bb60006 (patch)
tree5e54300cc5e4cc3c63e47fa5c6d36590f4519786
parent3ce86ee14ba7c4b0f8ddae6030df9d0dee15b236 (diff)
commit 1858f72fa2e2f63e62114a9bd40c8e68468d8c5e
Author: Ralf Baechle <ralf@linux-mips.org> Date: Fri Jul 22 05:46:02 2005 +0000 New build target vmlinux.bin build raw binary image for Qemu. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/Makefile8
-rw-r--r--arch/mips/boot/Makefile4
2 files changed, 11 insertions, 1 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index d62787ab9fff..9c91e70d8ee2 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -774,10 +774,17 @@ ifdef CONFIG_MIPS_SEAD
774all: vmlinux.srec 774all: vmlinux.srec
775endif 775endif
776 776
777ifdef CONFIG_QEMU
778all: vmlinux.bin
779endif
780
777ifdef CONFIG_SNI_RM200_PCI 781ifdef CONFIG_SNI_RM200_PCI
778all: vmlinux.ecoff 782all: vmlinux.ecoff
779endif 783endif
780 784
785vmlinux.bin: $(vmlinux-32)
786 +@$(call makeboot,$@)
787
781vmlinux.ecoff vmlinux.rm200: $(vmlinux-32) 788vmlinux.ecoff vmlinux.rm200: $(vmlinux-32)
782 +@$(call makeboot,$@) 789 +@$(call makeboot,$@)
783 790
@@ -793,7 +800,6 @@ archclean:
793 @$(MAKE) $(clean)=arch/mips/boot 800 @$(MAKE) $(clean)=arch/mips/boot
794 @$(MAKE) $(clean)=arch/mips/lasat 801 @$(MAKE) $(clean)=arch/mips/lasat
795 802
796
797CLEAN_FILES += vmlinux.32 \ 803CLEAN_FILES += vmlinux.32 \
798 vmlinux.64 \ 804 vmlinux.64 \
799 vmlinux.ecoff 805 vmlinux.ecoff
diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile
index efbeac326815..0dc84417bf49 100644
--- a/arch/mips/boot/Makefile
+++ b/arch/mips/boot/Makefile
@@ -33,6 +33,9 @@ vmlinux.ecoff: $(obj)/elf2ecoff $(VMLINUX)
33$(obj)/elf2ecoff: $(obj)/elf2ecoff.c 33$(obj)/elf2ecoff: $(obj)/elf2ecoff.c
34 $(HOSTCC) -o $@ $^ 34 $(HOSTCC) -o $@ $^
35 35
36vmlinux.bin: $(VMLINUX)
37 $(OBJCOPY) -O binary $(strip-flags) $(VMLINUX) $(obj)/vmlinux.bin
38
36vmlinux.srec: $(VMLINUX) 39vmlinux.srec: $(VMLINUX)
37 $(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) $(obj)/vmlinux.srec 40 $(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) $(obj)/vmlinux.srec
38 41
@@ -45,5 +48,6 @@ archhelp:
45 48
46clean-files += addinitrd \ 49clean-files += addinitrd \
47 elf2ecoff \ 50 elf2ecoff \
51 vmlinux.bin \
48 vmlinux.ecoff \ 52 vmlinux.ecoff \
49 vmlinux.srec 53 vmlinux.srec