[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL 01/29] Fix configure for s390 qemu on alpine and othe
From: |
Cornelia Huck |
Subject: |
[qemu-s390x] [PULL 01/29] Fix configure for s390 qemu on alpine and other busybox environments |
Date: |
Fri, 9 Feb 2018 10:24:56 +0100 |
From: Alice Frosi <address@hidden>
In alpine docker image the qemu-system-s390x build is broken and
it throws this error:
qemu-system-s390x: Initialization of device s390-ipl failed: could not
load bootloader 's390-ccw.img'
The grep command of busybox uses regex. This fails on binary data
(e.g. stops on every \0), so it does not identify the string
BiGeNdIaN in the test case big/little. Therefore, it assumes
that the architecture is little endian.
This fix solves the grep problem by printing the content of
TMPO with strings
Signed-off-by: Alice Frosi <address@hidden>
Signed-off-by: Christian Borntraeger <address@hidden>
[some changes to patch description, add -a option to strings]
Message-Id: <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 831ebf248f..1be413a004 100755
--- a/configure
+++ b/configure
@@ -1933,9 +1933,9 @@ int main(int argc, char *argv[]) {
EOF
if compile_object ; then
- if grep -q BiGeNdIaN $TMPO ; then
+ if strings -a $TMPO | grep -q BiGeNdIaN ; then
bigendian="yes"
- elif grep -q LiTtLeEnDiAn $TMPO ; then
+ elif strings -a $TMPO | grep -q LiTtLeEnDiAn ; then
bigendian="no"
else
echo big/little test failed
--
2.13.6
- [qemu-s390x] [PULL 00/29] s390x: assorted updates, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 01/29] Fix configure for s390 qemu on alpine and other busybox environments,
Cornelia Huck <=
- [qemu-s390x] [PULL 03/29] s390x/flic: simplify flic initialization, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 02/29] s390x/tcg: deliver multiple interrupts in a row, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 04/29] s390x/tcg: simplify lookup of flic, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 08/29] s390x/tcg: tolerate wrong wakeups due to floating interrupts, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 07/29] s390x/flic: no need to call s390_io_interrupt() from flic, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 06/29] s390x/flic: factor out injection of floating interrupts, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 11/29] s390x/flic: implement qemu_s390_clear_io_flic(), Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 05/29] s390x/tcg: simplify machine check handling, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 10/29] s390x/tcg: implement TEST PENDING INTERRUPTION, Cornelia Huck, 2018/02/09
- [qemu-s390x] [PULL 12/29] s390x/flic: optimize CPU wakeup for TCG, Cornelia Huck, 2018/02/09