]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 18 Nov 2013 10:51:46 +0000 (11:51 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 18 Nov 2013 10:51:46 +0000 (11:51 +0100)
master since with some combinations of qemu and firmware only primary
IDE channel is available.

ChangeLog
tests/util/grub-shell.in

index 05d25e9583f9763dbdb6d8135ef898b42a058bba..821a6396c838c1a27f9b78cba8f8773cbcdd34b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
+       master since with some combinations of qemu and firmware only primary
+       IDE channel is available.
+
 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
index ddd10d106c626d662446fe77a9499113e7967fa4..0abdf1794766db65e9b7c6b915ab1fc921d65d29 100644 (file)
@@ -354,39 +354,43 @@ if [ x$boot != xnet ] && [ x$boot != xemu ]; then
 fi
 if [ x$boot = xhd ]; then
     if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = mips-arc ]; then
-       device=hdb
+       device="hdb "
     else
-       device=hda
+       device="hda "
     fi
     bootdev="-boot c"
 fi
 if [ x$boot = xcd ]; then
-    device=cdrom
+    if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = powerpc-ieee1275 ]; then
+       device="-drive if=ide,media=cdrom,file="
+    else
+       device="cdrom "
+    fi
     bootdev="-boot d"
 fi
 if [ x$boot = xfd ]; then
-    device=fda
+    device="fda "
     bootdev="-boot a"
 fi
 
 if [ x$boot = xqemu ]; then
     bootdev="-bios ${rom_directory}/qemu.img"
-    device=cdrom
+    device="cdrom "
 fi
 
 if [ x$boot = xmipsel_qemu ]; then
     bootdev="-kernel ${rom_directory}/mipsel-qemu_mips.elf"
-    device=cdrom
+    device="cdrom "
 fi
 
 if [ x$boot = xmipsel_fulong2e ]; then
     bootdev="-kernel ${rom_directory}/mipsel-loongson.elf -append machtype=lemote-fuloong-2e"
-    device=cdrom
+    device="cdrom "
 fi
 
 if [ x$boot = xmips_qemu ]; then
     bootdev="-kernel ${rom_directory}/mips-qemu_mips.elf"
-    device=cdrom
+    device="cdrom "
 fi
 
 if [ x$boot = xcoreboot ]; then
@@ -394,7 +398,7 @@ if [ x$boot = xcoreboot ]; then
     cp "${GRUB_COREBOOT_ROM}" "${imgfile}"
     "${GRUB_CBFSTOOL}" "${imgfile}" add-payload "${rom_directory}/coreboot.elf" fallback/payload
     bootdev="-bios ${imgfile}"
-    device=cdrom
+    device="cdrom "
     test -z "$debug" || echo "Coreboot image: ${imgfile}" >&2
 fi
 
@@ -435,7 +439,7 @@ elif [ x$boot = xemu ]; then
     @builddir@/grub-core/grub-emu -m "$device_map" -d "$grubdir" | tr -d "\r" | do_trim
     rm -rf "$grubdir"
 else
-    timeout -s KILL $timeout "${qemu}" ${qemuopts} ${serial_null} -serial file:/dev/stdout -${device} ${isofile} ${bootdev} | cat | tr -d "\r" | do_trim
+    timeout -s KILL $timeout "${qemu}" ${qemuopts} ${serial_null} -serial file:/dev/stdout -${device}"${isofile}" ${bootdev} | cat | tr -d "\r" | do_trim
 fi
 if [ x$boot = xcoreboot ]; then
     test -n "$debug" || rm -f "${imgfile}"