Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Embedded ramdisks
@ 2003-05-23 13:52 Geert Uytterhoeven
  2003-05-27  4:09 ` Ralf Baechle
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2003-05-23 13:52 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Linux/MIPS Development

	Hi Ralf,

Fix the dependency for embedded ramdisks by using the contents of
CONFIG_EMBEDDED_RAMDISK_IMAGE (after stripping the leading and trailing double
quotes) instead of using the hardcoded filename `ramdisk.gz'.

--- linux-mips-2.4.x/arch/mips/ramdisk/Makefile	Tue Apr  1 16:22:04 2003
+++ linux/arch/mips/ramdisk/Makefile	Wed Apr  2 18:31:48 2003
@@ -8,7 +8,7 @@
 
 O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32)
 img = $(CONFIG_EMBEDDED_RAMDISK_IMAGE)
-ramdisk.o: ramdisk.gz ld.script
+ramdisk.o: $(subst ",,$(img)) ld.script
 	echo "O_FORMAT:  " $(O_FORMAT)
 	$(LD) -T ld.script -b binary --oformat $(O_FORMAT) -o $@ $(img)
 

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH] Embedded ramdisks
@ 2002-12-05 15:47 Geert Uytterhoeven
  0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2002-12-05 15:47 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Linux/MIPS Development


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)
 img = $(CONFIG_EMBEDDED_RAMDISK_IMAGE)
-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)
 

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-27  4:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-23 13:52 [PATCH] Embedded ramdisks Geert Uytterhoeven
2003-05-27  4:09 ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2002-12-05 15:47 Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox