diff --git a/arch/mips/Makefile b/arch/mips/Makefile index d62787ab9fff0b587b0cb24ce50f0e60a1ed9fe8..9c91e70d8ee252f41fc6e9f878406ef3cbd3f0b5 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -774,10 +774,17 @@ ifdef CONFIG_MIPS_SEAD all: vmlinux.srec endif +ifdef CONFIG_QEMU +all: vmlinux.bin +endif + ifdef CONFIG_SNI_RM200_PCI all: vmlinux.ecoff endif +vmlinux.bin: $(vmlinux-32) + +@$(call makeboot,$@) + vmlinux.ecoff vmlinux.rm200: $(vmlinux-32) +@$(call makeboot,$@) @@ -793,7 +800,6 @@ archclean: @$(MAKE) $(clean)=arch/mips/boot @$(MAKE) $(clean)=arch/mips/lasat - CLEAN_FILES += vmlinux.32 \ vmlinux.64 \ vmlinux.ecoff diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile index efbeac326815fd24e47fd194375f427bdce3d95c..0dc84417bf49367e37c9ef63306230c2658ebcf1 100644 --- a/arch/mips/boot/Makefile +++ b/arch/mips/boot/Makefile @@ -33,6 +33,9 @@ vmlinux.ecoff: $(obj)/elf2ecoff $(VMLINUX) $(obj)/elf2ecoff: $(obj)/elf2ecoff.c $(HOSTCC) -o $@ $^ +vmlinux.bin: $(VMLINUX) + $(OBJCOPY) -O binary $(strip-flags) $(VMLINUX) $(obj)/vmlinux.bin + vmlinux.srec: $(VMLINUX) $(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) $(obj)/vmlinux.srec @@ -45,5 +48,6 @@ archhelp: clean-files += addinitrd \ elf2ecoff \ + vmlinux.bin \ vmlinux.ecoff \ vmlinux.srec