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