From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqktV-0005G1-SI for qemu-devel@nongnu.org; Fri, 27 Jan 2012 07:27:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqktN-0003l7-48 for qemu-devel@nongnu.org; Fri, 27 Jan 2012 07:27:05 -0500 Message-ID: <4F2297FB.2040508@siemens.com> Date: Fri, 27 Jan 2012 13:26:35 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <4F1DA82F.4090808@siemens.com> In-Reply-To: <4F1DA82F.4090808@siemens.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2] optionroms: Silence intermediate file removal List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , qemu-trivial Cc: =?ISO-8859-1?Q?Andreas_F=E4rber?= , Stefan Hajnoczi 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 --- Changes in v2: - comment on .SECONDARY purpose - make rm -rf dependent on success of build command pc-bios/optionrom/Makefile | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index 51da288..4e7275b 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -16,14 +16,17 @@ QEMU_CFLAGS = $(CFLAGS) build-all: multiboot.bin linuxboot.bin +# suppress auto-removal of intermediate files +.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