[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 3/5] pc-bios/s390-ccw: use STRIP variable in Makefile
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PULL 3/5] pc-bios/s390-ccw: use STRIP variable in Makefile |
Date: |
Thu, 8 Jun 2017 15:18:58 +0200 |
From: Greg Kurz <address@hidden>
The address@hidden 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 <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Signed-off-by: Christian Borntraeger <address@hidden>
---
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 79a46b6..fb88c13 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
--
2.7.4
- [Qemu-devel] [PULL 0/5] s390x/kvm: various fixes, Christian Borntraeger, 2017/06/08
- [Qemu-devel] [PULL 2/5] s390x/css: fence off MIDA, Christian Borntraeger, 2017/06/08
- [Qemu-devel] [PULL 5/5] s390x/cpumodel: improve defintion search without an IBC, Christian Borntraeger, 2017/06/08
- [Qemu-devel] [PULL 4/5] s390x/cpumodel: take care of the cpuid format bit for KVM, Christian Borntraeger, 2017/06/08
- [Qemu-devel] [PULL 3/5] pc-bios/s390-ccw: use STRIP variable in Makefile,
Christian Borntraeger <=
- [Qemu-devel] [PULL 1/5] s390x/css: catch section mismatch on load, Christian Borntraeger, 2017/06/08
- Re: [Qemu-devel] [PULL 0/5] s390x/kvm: various fixes, Christian Borntraeger, 2017/06/08