nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0342-util-grub-install.in-Fix-target-fo-qemu_mips.patch

f96e0b
From cfd149ef7abd7dedcfc558c2b3ba905a9ec87c43 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Wed, 24 Apr 2013 15:10:29 +0200
f96e0b
Subject: [PATCH 342/482] 	* util/grub-install.in: Fix target fo
f96e0b
 qemu_mips. 	Fix extension on EFI.
f96e0b
f96e0b
---
f96e0b
 ChangeLog            | 5 +++++
f96e0b
 util/grub-install.in | 5 +++--
f96e0b
 2 files changed, 8 insertions(+), 2 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 7e29788..2f55104 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,10 @@
f96e0b
 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* util/grub-install.in: Fix target fo qemu_mips.
f96e0b
+	Fix extension on EFI.
f96e0b
+
f96e0b
+2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	* grub-core/normal/menu_text.c (print_entry): Put an asterisk
f96e0b
 	in front of chosen entry to mark it even if highlighting is lost.
f96e0b
 
f96e0b
diff --git a/util/grub-install.in b/util/grub-install.in
f96e0b
index 32a3be3..271e447 100644
f96e0b
--- a/util/grub-install.in
f96e0b
+++ b/util/grub-install.in
f96e0b
@@ -673,13 +673,14 @@ fi
f96e0b
 case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
f96e0b
     sparc64-ieee1275) mkimage_target=sparc64-ieee1275-raw ;;
f96e0b
     mipsel-loongson) mkimage_target=mipsel-loongson-elf ;;
f96e0b
+    mips-qemu_mips | mipsel-qemu_mips) mkimage_target="${grub_modinfo_target_cpu}-${grub_modinfo_platform}"-elf ;;
f96e0b
     *) mkimage_target="${grub_modinfo_target_cpu}-${grub_modinfo_platform}" ;;
f96e0b
 esac
f96e0b
 
f96e0b
 case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
f96e0b
-    i386-efi | x86_64-efi) imgext=efi ;;
f96e0b
+    i386-efi | x86_64-efi | ia64-efi) imgext=efi ;;
f96e0b
     mipsel-loongson | i386-coreboot | i386-multiboot | i386-ieee1275 \
f96e0b
-	| powerpc-ieee1275) imgext=elf ;;
f96e0b
+	| powerpc-ieee1275 | mips-qemu_mips | mipsel-qemu_mips) imgext=elf ;;
f96e0b
     *) imgext=img ;;
f96e0b
 esac
f96e0b
 
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b