From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXMU1-0000NR-6g for qemu-devel@nongnu.org; Sat, 01 Aug 2009 17:51:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXMTw-0000LF-Hc for qemu-devel@nongnu.org; Sat, 01 Aug 2009 17:51:16 -0400 Received: from [199.232.76.173] (port=50996 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXMTw-0000LC-EH for qemu-devel@nongnu.org; Sat, 01 Aug 2009 17:51:12 -0400 Received: from mail-ew0-f210.google.com ([209.85.219.210]:58033) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXMTw-0003np-2i for qemu-devel@nongnu.org; Sat, 01 Aug 2009 17:51:12 -0400 Received: by ewy6 with SMTP id 6so422094ewy.34 for ; Sat, 01 Aug 2009 14:51:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <75404CF870024F539884B8819ECD6E60@FSCPC> References: <75404CF870024F539884B8819ECD6E60@FSCPC> Date: Sat, 1 Aug 2009 23:51:11 +0200 Message-ID: <5b31733c0908011451i69a51791r7fec576fed7c41ad@mail.gmail.com> Subject: Re: [Qemu-devel] signrom.sh and MinGW From: Filip Navara Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Herbszt Cc: Alexander Graf , qemu-devel@nongnu.org On Sat, Aug 1, 2009 at 11:47 PM, Sebastian Herbszt wrote: > v0.11.0-rc0-182-g28e738d/pc-bios/optionrom/signrom.sh multiboot.raw > multiboot.bin > v0.11.0-rc0-182-g28e738d/pc-bios/optionrom/signrom.sh: * 512 - 1 : syntax > error: operand expected (error token is "* 512 - 1 ") > make[1]: *** [multiboot.bin] Error 1 > rm multiboot.raw multiboot.img multiboot.o > make: *** [romsubdir-optionrom] Error 2 > > pc-bios/optionrom/signrom.sh has > > # find out the file size > x=`dd if="$1" bs=1 count=1 skip=2 2>/dev/null | od -t u1 -A n` > #size=`expr $x \* 512 - 1` > size=$(( $x * 512 - 1 )) > > but it seems (at least my) MinGW doesn't include "dd". > I have already reported that on the mailing list earlier. Workaround/fix is to download MSYS coreutils from the MinGW download page. Best regards, Filip Navara