~ubuntu-branches/ubuntu/precise/dell-recovery/precise

« back to all changes in this revision

Viewing changes to bootloader_patches/mingw.patch

  • Committer: Package Import Robot
  • Author(s): Mario Limonciello, Mario Limonciello, David Chen
  • Date: 2011-12-14 18:02:03 UTC
  • Revision ID: package-import@ubuntu.com-20111214180203-6t1q36fko2p1nh9r
Tags: 1.13
[ Mario Limonciello ]
* Include some updated patches from tyson for XML parsing in bad BIOS
  scenarios.
* If no matching rec_part initially (blank disk) then don't crash
* Don't build grub.cfg again if building binaries from bootstrap.
* Query the release that we're running on to figure out whether to
  use patches for that release when building grub-setup.exe.
* Include patches for both trunk and precise.
* Fix file cleanup for dell-recovery-bootloader during purge.

[ David Chen ]
* Update the maximum size of a partition in the ubuntu.seed recipe
  to make sure partman doesn't make bad decisions about swap partition
  size when working with a >=2TB HDD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
3
 
 
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
7
 
@@ -23,6 +23,12 @@
8
 
 #include <grub/term.h>
9
 
 #include <grub/dl.h>
10
 
 
11
 
+/* mingw32 does not support termios as required
12
 
+   by GRUB_UTIL throughout this file*/
13
 
+#ifdef __MINGW32__
14
 
+#undef GRUB_UTIL
15
 
+#endif
16
 
+
17
 
 #ifdef GRUB_UTIL
18
 
 #include <termios.h>
19
 
 #include <stdlib.h>
20
 
 
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
24
 
@@ -189,8 +189,10 @@
25
 
   if (fd < 0)
26
 
     return NULL;
27
 
 
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);
31
 
+#endif
32
 
 
33
 
   uuid = xmalloc (GRUB_MD_SHA256->mdlen * 2 + 1);
34
 
   if (grub_util_fd_read (fd, (void *) &hdr, 512) < 0)
35