From: Christian Borntraeger <borntraeger@de.ibm.com>
To: qemu-s390x@nongnu.org, qemu-devel@nongnu.org,
Peter Maydell <peter.maydell@linaro.org>,
Paolo Bonzini <pbonzini@redhat.com>
Cc: Alice Frosi <alice@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [qemu-s390x] [PATCH 12/12] Fix configure for s390 qemu on alpine
Date: Fri, 19 Jan 2018 18:45:13 +0100 [thread overview]
Message-ID: <f76b7788-c8b7-9401-4f3f-28c5d38c97ee@de.ibm.com> (raw)
In-Reply-To: <10f37bd8-eecd-bd12-820a-e485397cb496@de.ibm.com>
And the from email address is also wrong. (spurious x after .com)
On 01/19/2018 05:53 PM, Christian Borntraeger wrote:
> ignore the 12/12, it is just one patch....
>
> On 01/19/2018 05:42 PM, Christian Borntraeger wrote:
>> From: Alice Frosi <alice@linux.vnet.ibm.comx>
>>
>> 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 <alice@linux.vnet.ibm.com>
>> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
>> [some changes to patch description, add -a option to strings]
>> ---
>> configure | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/configure b/configure
>> index 6d8c996..383b14e 100755
>> --- a/configure
>> +++ b/configure
>> @@ -1906,9 +1906,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
>>
>
>
prev parent reply other threads:[~2018-01-19 17:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 16:42 [Qemu-devel] [PATCH 12/12] Fix configure for s390 qemu on alpine Christian Borntraeger
2018-01-19 16:53 ` Christian Borntraeger
2018-01-19 17:45 ` Christian Borntraeger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f76b7788-c8b7-9401-4f3f-28c5d38c97ee@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=alice@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).