From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpJdB-0007UU-EM for qemu-devel@nongnu.org; Mon, 13 Oct 2008 05:22:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpJd8-0007UE-T5 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 05:22:24 -0400 Received: from [199.232.76.173] (port=42093 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpJd8-0007UB-OZ for qemu-devel@nongnu.org; Mon, 13 Oct 2008 05:22:22 -0400 Received: from ra.siriusit.co.uk ([217.207.197.130]:59037) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KpJd8-00070t-6u for qemu-devel@nongnu.org; Mon, 13 Oct 2008 05:22:22 -0400 Received: from [192.168.1.83] (mcavea@[192.168.1.83]) by ra.siriusit.co.uk (8.13.3/8.13.3) with ESMTP id m9D9MgS0010421 for ; Mon, 13 Oct 2008 10:22:42 +0100 Message-ID: <48F31346.3060407@siriusit.co.uk> Date: Mon, 13 Oct 2008 10:22:14 +0100 From: Mark Cave-Ayland MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu References: <48CB129E.7090003@codemonkey.ws> <48CB7070.3040806@siriusit.co.uk> <48CBD1DF.6010608@codemonkey.ws> In-Reply-To: <48CBD1DF.6010608@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori wrote: > Mark Cave-Ayland wrote: >> Anthony Liguori wrote: >>> I'm not really sure where /c/Program Files/Qemu comes from. Cygwin >>> would use /cygdrive/c/Program Files/Qemu and mingw32 would use >>> c:\\Program Files\\Qemu. >> >> I've not tried building the Windows BIOS myself, however /c/Program >> Files/Qemu is a MingW/MSYS path (where the default MSYS bash shell >> provides UNIX-like paths in this format). > > Are you absolutely positive? Have you confirmed this? If so, on what > version of mingw32/msys? > > As I said, I've tried this on mingw and it doesn't work. > > Regards, > > Anthony Liguori Hi Anthony, Firstly, apologies for the long delay on this one - I've been away for a considerable part of this month and I'm afraid this fell off the radar. MSYS is really just a port of the GNU toolchain to the Windows platform so that autoconf and friends can be run. So MSYS allows paths of the form /c/Program Files/Qemu to be used with various build tools that don't like \s or :s within filenames. However, the compiled executables run using the standard MS MSVCRT.DLL runtime DLL which of course only allows standard Windows paths of the form "C:\Program Files\Qemu". So in short, if the above path is needed as part of the build process then it will be fine since MSYS will map the paths for you; however if it is needed at runtime (i.e. the full path is embedded as a string within an executable) then you need to use the standard Windows since the MS runtime won't understand it. I did have a look at SVN trunk and it appears that bios_dir is set to be equal to CONFIG_QEMU_SHAREDIR; so yes for this to work at runtime it needs to be specified in standard Windows path format. However, you'd need to check that doing this wouldn't break the build for MingW elsewhere. HTH, Mark. -- Mark Cave-Ayland Sirius Corporation - The Open Source Experts http://www.siriusit.co.uk T: +44 870 608 0063