Support i386-ieee1275 grub-mkrescue and make check on it.
This commit is contained in:
parent
a79b8a1584
commit
dbc56d8f0b
7 changed files with 34 additions and 5 deletions
|
@ -35,7 +35,7 @@ done
|
|||
|
||||
other=`echo insmod regexp\; echo '(*)' | @builddir@/grub-shell`
|
||||
for d in $disks; do
|
||||
if ! echo "$other" | grep "$d" >/dev/null; then
|
||||
if ! echo "$other" | grep -F "$d" >/dev/null; then
|
||||
echo "$d missing from (*) expansion" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -49,7 +49,7 @@ list_parts () {
|
|||
outfile="$1"
|
||||
shift
|
||||
|
||||
echo ls | "${grubshell}" --qemu-opts="-hda ${imgfile}" \
|
||||
echo ls | "${grubshell}" --qemu-opts="-$qemudisk ${imgfile}" \
|
||||
--modules=$mod | tr -d "\n\r" > "${outfile}"
|
||||
cat "${outfile}"
|
||||
echo
|
||||
|
@ -58,12 +58,18 @@ list_parts () {
|
|||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
mips-qemu_mips | mipsel-qemu_mips | i386-qemu | i386-multiboot | i386-coreboot | mipsel-loongson)
|
||||
disk=ata0
|
||||
qemudisk=hda
|
||||
;;
|
||||
powerpc-ieee1275)
|
||||
disk=ieee1275//pci@80000000/mac-io@4/ata-3@20000/disk@0
|
||||
qemudisk=hda
|
||||
# QEMU firmware has bugs which prevent it from accessing hard disk.
|
||||
exit 0
|
||||
;;
|
||||
i386-ieee1275)
|
||||
disk=ieee1275/d
|
||||
qemudisk=hdb
|
||||
;;
|
||||
*)
|
||||
disk=hd0
|
||||
;;
|
||||
|
|
|
@ -100,10 +100,11 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
|||
console=vga_text;;
|
||||
|
||||
i386-ieee1275)
|
||||
boot=cd
|
||||
boot=hd
|
||||
qemu=qemu-system-i386
|
||||
console=console;;
|
||||
|
||||
console=console
|
||||
trim=1
|
||||
;;
|
||||
i386-qemu)
|
||||
boot=qemu
|
||||
qemu=qemu-system-i386
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue