[Top] [All Lists]

[PATCH] Embedded ramdisks

To: Ralf Baechle <>
Subject: [PATCH] Embedded ramdisks
From: Geert Uytterhoeven <>
Date: Thu, 5 Dec 2002 16:47:31 +0100 (MET)
Cc: Linux/MIPS Development <>
Original-recipient: rfc822;
The embedded ramdisk support allows to embed an arbitrary file in the image,
but the dependency in the Makefile still contains the hardcoded name
`ramdisk.gz'. This patch changes the dependency so it matches the selected file
name during kernel configuration.

The sed magic is needed because the kernel configuration embeds the filename in
double quotes.

--- linux-mips-2.4.x/arch/mips/ramdisk/Makefile Fri Oct 25 13:37:30 2002
+++ geert-mips-2.4.x/arch/mips/ramdisk/Makefile Thu Dec  5 11:53:14 2002
@@ -8,7 +8,7 @@
 O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32)
-ramdisk.o: ramdisk.gz ld.script
+ramdisk.o: $(shell echo $(img) | sed -e 's/"//g') ld.script
        echo "O_FORMAT:  " $(O_FORMAT)
        $(LD) -T ld.script -b binary --oformat $(O_FORMAT) -o $@ $(img)



Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Embedded ramdisks, Geert Uytterhoeven <=