]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-07-13 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Mon, 13 Jul 2009 23:57:11 +0000 (23:57 +0000)
committerproski <proski@localhost>
Mon, 13 Jul 2009 23:57:11 +0000 (23:57 +0000)
* include/grub/i386/coreboot/machine.h: Rename
GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
* loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.

ChangeLog
include/grub/i386/coreboot/machine.h [new file with mode: 0644]
loader/multiboot_loader.c

index edb71737764a9db3782ddeea18b02aff1f3b46bc..44e4e6fe19b762ead696692d3d46c038502e169e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-07-13  Pavel Roskin  <proski@gnu.org>
 
+       * include/grub/i386/coreboot/machine.h: Rename
+       GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
+       * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
+       multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
+
        * kern/dl.c: Force native word size to suppress warnings when
        compiling grub-emu.
 
diff --git a/include/grub/i386/coreboot/machine.h b/include/grub/i386/coreboot/machine.h
new file mode 100644 (file)
index 0000000..8b70590
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ *  GRUB  --  GRand Unified Bootloader
+ *  Copyright (C) 2007  Free Software Foundation, Inc.
+ *
+ *  GRUB is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  GRUB is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef GRUB_MACHINE_MACHINE_HEADER
+#define GRUB_MACHINE_MACHINE_HEADER    1
+
+#define GRUB_MACHINE_COREBOOT  1
+
+#endif /* ! GRUB_MACHINE_MACHINE_HEADER */
index 29c34d9f83f46cb0a7e16ac10e33a613a37d202d..986ee0b040e7dd01796a2a4b4037e1b0c1e1f519 100644 (file)
@@ -139,7 +139,8 @@ grub_cmd_multiboot_loader (grub_command_t cmd __attribute__ ((unused)),
 
   /* XXX Find a better way to identify this.
      This is for i386-pc */
-#if defined(GRUB_MACHINE_PCBIOS) || defined(GRUB_MACHINE_LINUXBIOS)
+#if defined(GRUB_MACHINE_PCBIOS) || defined(GRUB_MACHINE_COREBOOT) || \
+    defined(GRUB_MACHINE_QEMU)
   if (header_multi_ver_found == 1)
     {
       grub_dprintf ("multiboot_loader",
@@ -172,7 +173,8 @@ grub_cmd_module_loader (grub_command_t cmd __attribute__ ((unused)),
                        int argc, char *argv[])
 {
 
-#if defined(GRUB_MACHINE_PCBIOS) || defined(GRUB_MACHINE_LINUXBIOS)
+#if defined(GRUB_MACHINE_PCBIOS) || defined(GRUB_MACHINE_COREBOOT) || \
+    defined(GRUB_MACHINE_QEMU)
   if (module_version_status == 1)
     {
       grub_dprintf("multiboot_loader",