From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LisRi-0007yC-AE for mharc-grub-devel@gnu.org; Sun, 15 Mar 2009 11:40:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LisRg-0007wQ-3m for grub-devel@gnu.org; Sun, 15 Mar 2009 11:40:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LisRb-0007tT-2c for grub-devel@gnu.org; Sun, 15 Mar 2009 11:40:11 -0400 Received: from [199.232.76.173] (port=52637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LisRa-0007tF-Ri for grub-devel@gnu.org; Sun, 15 Mar 2009 11:40:06 -0400 Received: from aybabtu.com ([69.60.117.155]:56005) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LisRa-0000gd-Cs for grub-devel@gnu.org; Sun, 15 Mar 2009 11:40:06 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1LisIv-00041X-MD for grub-devel@gnu.org; Sun, 15 Mar 2009 16:31:10 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1LisRW-0006Q4-LF for grub-devel@gnu.org; Sun, 15 Mar 2009 16:40:02 +0100 Date: Sun, 15 Mar 2009 16:40:02 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090315154002.GC24554@thorin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] patch to compile grub2 in msys/mingw environment X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2009 15:40:12 -0000 On Sun, Mar 15, 2009 at 03:27:05AM +0800, Bean wrote: > Hi, > > There are three issue related to msys/mingw environment. > > 1, no nanosleep in mingw, although, the windows API Sleep support millisecond. > > 2, Use stat on device like //./PHYSICALDRIVE0 would fail. It should > use utility function grub_util_get_disk_size in read_device_map. > > 3, The ln command in msys can't handle symbol link properly, which > causes AC_CONFIG_LINKS to fail. This patch add new test > grub_CHECK_LINK_DIR, which is used to decide whether to call > AC_CONFIG_LINKS or copy directory itself. > > 2009-03-14 Bean > > * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size to > instead of stat in mingw environment. > > * util/misc.c (grub_millisleep): New function in environment. > > * aclocal.m4 (grub_CHECK_LINK_DIR): New function. > > * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use > AC_CONFIG_LINKS. It seems you defined the mingw32 version of grub_millisleep unconditionally. Btw, would be nice if you could send patches as inline attachments, without the base64 encoding. Then I'd have been able to reply using the patch as context. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."