From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG3lu-00032k-Jo for qemu-devel@nongnu.org; Wed, 31 May 2017 09:34:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG3lr-0003nv-9g for qemu-devel@nongnu.org; Wed, 31 May 2017 09:34:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54584) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dG3lr-0003nW-36 for qemu-devel@nongnu.org; Wed, 31 May 2017 09:34:43 -0400 References: <149623617700.4947.12490877660892961664.stgit@bahia.lan> From: Laurent Vivier Message-ID: Date: Wed, 31 May 2017 15:34:37 +0200 MIME-Version: 1.0 In-Reply-To: <149623617700.4947.12490877660892961664.stgit@bahia.lan> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] pc-bios/s390-ccw: use STRIP variable in Makefile List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz , qemu-devel@nongnu.org Cc: Cornelia Huck , Christian Borntraeger , Fam Zheng , Alexander Graf , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= On 31/05/2017 15:09, Greg Kurz wrote: > The docker-run-test-build@debian-s390x-cross target fails with: > > strip --strip-unneeded s390-ccw.elf -o s390-ccw.img > strip: Unable to recognise the format of the input file `s390-ccw.elf' > > The configure script defines a STRIP makefile variable whose default > value is ${cross_prefix}strip. Let's use it. > > We default to using the non-prefixed strip command in case --enable-debug > or --disable-strip was passed to configure during a regular build. > > Signed-off-by: Greg Kurz > --- > v2: - added default value > - no longer Cc: qemu-trivial as it turned out to be not that trivial > > Philippe, > > Please give your Reviewed-by again if you're okay with this change. > --- > pc-bios/s390-ccw/Makefile | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile > index 79a46b67356f..fb88c13bc742 100644 > --- a/pc-bios/s390-ccw/Makefile > +++ b/pc-bios/s390-ccw/Makefile > @@ -21,8 +21,10 @@ build-all: s390-ccw.img > s390-ccw.elf: $(OBJECTS) > $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS),"BUILD","$(TARGET_DIR)$@") > > +STRIP ?= strip > + > s390-ccw.img: s390-ccw.elf > - $(call quiet-command,strip --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@") > + $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@") > > $(OBJECTS): Makefile > > > Reviewed-by: Laurent Vivier