1
This is a collection of patches that make the GRUB2 build work on mingw32.
2
These were explicitly rejected upstream due to needing rework.
4
=== modified file 'grub2/grub-core/lib/crypto.c'
5
--- grub2/grub-core/lib/crypto.c 2011-04-24 15:15:55 +0000
6
+++ grub2/grub-core/lib/crypto.c 2011-09-21 21:00:59 +0000
11
+/* mingw32 does not support termios as required
12
+ by GRUB_UTIL throughout this file*/
21
=== modified file 'grub2/grub-core/disk/geli.c'
22
--- grub2/grub-core/disk/geli.c 2011-04-25 12:52:07 +0000
23
+++ grub2/grub-core/disk/geli.c 2011-09-21 21:18:21 +0000
28
+#if !defined(__MINGW32__)
29
s = grub_util_get_fd_sectors (fd, &log_secsize);
30
grub_util_fd_seek (fd, dev, (s << log_secsize) - 512);
33
uuid = xmalloc (GRUB_MD_SHA256->mdlen * 2 + 1);
34
if (grub_util_fd_read (fd, (void *) &hdr, 512) < 0)