dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0288-tests-util-grub-shell.in-Fix-it-on-powerpc.patch

f96e0b
From d6ab257f56d41f230ba4a5697177ba9c0e8c685a Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Fri, 12 Apr 2013 14:52:05 +0200
f96e0b
Subject: [PATCH 288/482] 	* tests/util/grub-shell.in: Fix it on powerpc.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                | 4 ++++
f96e0b
 tests/util/grub-shell.in | 9 +++++++--
f96e0b
 2 files changed, 11 insertions(+), 2 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 1c77abf..109bb4c 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,9 @@
f96e0b
 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* tests/util/grub-shell.in: Fix it on powerpc.
f96e0b
+
f96e0b
+2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	Turn off QEMU ACPI-way since new releases don't have shutdown port
f96e0b
 	anymore.
f96e0b
 
f96e0b
diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
f96e0b
index c6d1cd7..e467b4a 100644
f96e0b
--- a/tests/util/grub-shell.in
f96e0b
+++ b/tests/util/grub-shell.in
f96e0b
@@ -198,8 +198,13 @@ cfgfile=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
f96e0b
 cat <<EOF >${cfgfile}
f96e0b
 grubshell=yes
f96e0b
 insmod serial
f96e0b
+EOF
f96e0b
+if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = powerpc-ieee1275 ]; then
f96e0b
+    echo insmod escc >>${cfgfile}
f96e0b
+fi
f96e0b
+cat <<EOF >>${cfgfile}
f96e0b
 serial ${serial_port}
f96e0b
-terminfo serial_${serial_port} dumb
f96e0b
+terminfo -g 255x255 serial_${serial_port} dumb
f96e0b
 terminal_input serial_${serial_port}
f96e0b
 terminal_output serial_${serial_port}
f96e0b
 EOF
f96e0b
@@ -228,7 +233,7 @@ echo "${halt_cmd}" >>${cfgfile}
f96e0b
 
f96e0b
 isofile=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
f96e0b
 if [ x$boot != xnet ]; then
f96e0b
-    pkgdatadir="@builddir@" sh "@builddir@/grub-mkrescue" "--grub-mkimage=${builddir}/grub-mkimage" "--output=${isofile}" "--override-directory=${builddir}/grub-core" \
f96e0b
+    pkgdatadir="@builddir@" sh "@builddir@/grub-mkrescue" "--grub-mkimage=${builddir}/grub-mkimage" "--grub-render-label=${builddir}/grub-render-label" "--output=${isofile}" "--override-directory=${builddir}/grub-core" \
f96e0b
 	--rom-directory="${rom_directory}" \
f96e0b
 	"/boot/grub/grub.cfg=${cfgfile}" "/boot/grub/testcase.cfg=${source}" \
f96e0b
 	${files} >/dev/null 2>&1
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b