grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] patch to compile grub2 in msys/mingw environment


From: Bean
Subject: [PATCH] patch to compile grub2 in msys/mingw environment
Date: Sun, 15 Mar 2009 03:27:05 +0800

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  <address@hidden>

        * 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.

-- 
Bean

Attachment: mingw.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]