patch-2.4.0-test3 linux/arch/mips/boot/Makefile

Next file: linux/arch/mips/cobalt/Makefile
Previous file: linux/arch/mips/baget/vacserial.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/arch/mips/boot/Makefile linux/arch/mips/boot/Makefile
@@ -46,8 +46,25 @@
 
 clean:
 	rm -f vmlinux.ecoff
+	rm -f zImage zImage.tmp mkboot
+
+mrproper:
+	rm -f vmlinux.ecoff
 	rm -f addinitrd
 	rm -f elf2ecoff
+
+zImage:	$(CONFIGURE) mkboot $(TOPDIR)/vmlinux
+	$(OBJCOPY) $(strip-flags) $(TOPDIR)/vmlinux zImage.tmp
+	./mkboot zImage.tmp zImage
+	rm -f zImage.tmp
+
+mkboot: mkboot.c
+	$(HOSTCC) -o $@ $^
+
+zdisk: 	zImage
+	cp $(TOPDIR)/vmlinux $(TOPDIR)/vm
+	$(STRIP) $(TOPDIR)/vm
+	gzip -9f $(TOPDIR)/vm
 
 dummy:
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)