patch-2.4.19 linux-2.4.19/arch/mips/ramdisk/Makefile

Next file: linux-2.4.19/arch/mips/ramdisk/ld.script
Previous file: linux-2.4.19/arch/mips/philips/nino/time.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/mips/ramdisk/Makefile linux-2.4.19/arch/mips/ramdisk/Makefile
@@ -0,0 +1,15 @@
+#
+# Makefile for a ramdisk image
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+
+O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32)
+ramdisk.o: ramdisk.gz ld.script
+	echo "O_FORMAT:  " $(O_FORMAT)
+	$(LD) -T ld.script -b binary --oformat $(O_FORMAT) -o $@ ramdisk.gz
+
+include $(TOPDIR)/Rules.make
+

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