From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXqmJ-0007gf-Vn for qemu-devel@nongnu.org; Mon, 03 Aug 2009 02:12:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXqmE-0007gL-RX for qemu-devel@nongnu.org; Mon, 03 Aug 2009 02:12:10 -0400 Received: from [199.232.76.173] (port=53469 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXqmE-0007gI-IY for qemu-devel@nongnu.org; Mon, 03 Aug 2009 02:12:06 -0400 Received: from mail-bw0-f227.google.com ([209.85.218.227]:42523) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXqmE-0002eR-5k for qemu-devel@nongnu.org; Mon, 03 Aug 2009 02:12:06 -0400 Received: by bwz27 with SMTP id 27so2150971bwz.34 for ; Sun, 02 Aug 2009 23:12:04 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4A767FB0.2030607@gnu.org> Date: Mon, 03 Aug 2009 08:12:00 +0200 From: Paolo Bonzini MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH] Fix checksum writing in signboot.sh References: <1249120111-31757-1-git-send-email-agraf@suse.de> <4A756491.6020004@redhat.com> <5b31733c0908020325k3e035b91n3b0089a2f865de3@mail.gmail.com> <4A757569.9010309@redhat.com> <60A4FD72-56B3-4670-BB82-1CE1878467CA@suse.de> <4A764BD3.1070003@codemonkey.ws> In-Reply-To: <4A764BD3.1070003@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Glauber Costa , "qemu-devel@nongnu.org" , Alexander Graf , Filip Navara , Jan Ondrej , Avi Kivity >> Right. In fact we just switched from C to sh for portability reasons. > > The problem is with cross compilers. Our build system is based around a > single tool chain and we only do feature probing, sanity checking, > cflags modifications, etc. on the target tool chain. If we build and run > a C program using the host compiler (which is needed in order to be able > to run the program), things get complicated quickly. One hopes that you do not need feature tests for the build compiler if it is used for someting as simple as generating checksums. The build compiler should be just "cc" or "gcc". That said, I don't think sh is a big problem. Paolo