From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqiyr-0007V8-99 for qemu-devel@nongnu.org; Fri, 27 Jan 2012 05:24:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqiym-0005UC-QR for qemu-devel@nongnu.org; Fri, 27 Jan 2012 05:24:29 -0500 Message-ID: <4F227AD6.5020408@suse.de> Date: Fri, 27 Jan 2012 11:22:14 +0100 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= 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: quoted-printable Subject: Re: [Qemu-devel] [PATCH] optionroms: Silence intermediate file removal List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-trivial , qemu-devel , Stefan Hajnoczi Am 23.01.2012 19:34, schrieb Jan Kiszka: > The build process of optionroms spits out an "rm ..." line. Moreover, i= t > removes all .o files that can be handy for debugging purposes. >=20 > Disable automatic intermediate removal and only clean up the unneeded > and large .img and .raw files. >=20 > Signed-off-by: Jan Kiszka > --- > pc-bios/optionrom/Makefile | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) >=20 > 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 =3D $(CFLAGS) > =20 > build-all: multiboot.bin linuxboot.bin > =20 > +.SECONDARY: > + > %.img: %.o > $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building= $(TARGET_DIR)$@") > =20 > %.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)$@") > =20 > %.bin: %.raw > - $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/signrom.sh $< $@," = Signing $(TARGET_DIR)$@") > + $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/signrom.sh $< $@; r= m -f $<," Signing $(TARGET_DIR)$@") > =20 > clean: > rm -f *.o *.d *.raw *.img *.bin *~ It's possible that objcopy or a shell script fails. In that case, && rm -f $< or a second output-suppressed Makefile line might be a better than ; rm -f $< Stefan's comment on .SECONDARY seconded. :) Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg