All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] optionroms: Silence intermediate file removal
@ 2012-01-23 18:34 ` Jan Kiszka
  0 siblings, 0 replies; 14+ messages in thread
From: Jan Kiszka @ 2012-01-23 18:34 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial

The build process of optionroms spits out an "rm ..." line. Moreover, it
removes all .o files that can be handy for debugging purposes.

Disable automatic intermediate removal and only clean up the unneeded
and large .img and .raw files.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 pc-bios/optionrom/Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile
index 51da288..3edde85 100644
--- a/pc-bios/optionrom/Makefile
+++ b/pc-bios/optionrom/Makefile
@@ -16,14 +16,16 @@ QEMU_CFLAGS = $(CFLAGS)
 
 build-all: multiboot.bin linuxboot.bin
 
+.SECONDARY:
+
 %.img: %.o
 	$(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<,"  Building $(TARGET_DIR)$@")
 
 %.raw: %.img
-	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"  Building $(TARGET_DIR)$@")
+	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@; rm -f $<,"  Building $(TARGET_DIR)$@")
 
 %.bin: %.raw
-	$(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/signrom.sh $< $@,"  Signing $(TARGET_DIR)$@")
+	$(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/signrom.sh $< $@; rm -f $<,"  Signing $(TARGET_DIR)$@")
 
 clean:
 	rm -f *.o *.d *.raw *.img *.bin *~
-- 
1.7.3.4


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

end of thread, other threads:[~2012-02-01 22:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-23 18:34 [Qemu-trivial] [PATCH] optionroms: Silence intermediate file removal Jan Kiszka
2012-01-23 18:34 ` [Qemu-devel] " Jan Kiszka
2012-01-27  6:19 ` [Qemu-trivial] " Stefan Hajnoczi
2012-01-27  6:19   ` [Qemu-devel] " Stefan Hajnoczi
2012-01-27 10:22 ` [Qemu-trivial] [Qemu-devel] " Andreas Färber
2012-01-27 10:22   ` Andreas Färber
2012-01-27 12:26 ` [Qemu-trivial] [PATCH v2] " Jan Kiszka
2012-01-27 12:26   ` [Qemu-devel] " Jan Kiszka
2012-01-27 13:24   ` [Qemu-trivial] " Andreas Färber
2012-01-27 13:24     ` [Qemu-devel] " Andreas Färber
2012-01-30 10:27   ` [Qemu-trivial] [PATCH v3] " Jan Kiszka
2012-01-30 10:27     ` [Qemu-devel] " Jan Kiszka
2012-02-01 22:11     ` [Qemu-trivial] " Anthony Liguori
2012-02-01 22:11       ` Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.