mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
* add tests/qemu.sh intstorage2 for RAID tests
* increaste default smp from 2 to 4 git-svn-id: https://svn.exactcode.de/t2/trunk@73734 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
This commit is contained in:
parent
beb559bbbc
commit
6bca110f2b
@ -15,6 +15,7 @@ normmem=768
|
||||
highmem=2048
|
||||
|
||||
intstorage="-device virtio-blk,drive=drv0 -drive if=none,id=drv0,file="
|
||||
intstorage2="-device virtio-blk,drive=drv1 -drive if=none,id=drv1,file="
|
||||
extstorage="-cdrom "
|
||||
|
||||
host_arch=$(uname -m)
|
||||
@ -23,7 +24,7 @@ efidir=/srv
|
||||
|
||||
case "$QEMUSYS" in
|
||||
*-alpha)
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
isoboot=
|
||||
;;
|
||||
*-arm*|*-aarch64*)
|
||||
@ -42,18 +43,18 @@ case "$QEMUSYS" in
|
||||
*-mips*)
|
||||
qemuargs="-M malta"
|
||||
[[ "$QEMUSYS" = *mips64* ]] && qemuargs="$qemuargs -cpu P5600"
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
isoboot=
|
||||
;;
|
||||
*-m68k)
|
||||
qemuargs="-M q800"
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
lowmem=256
|
||||
normmem=512
|
||||
isoboot=
|
||||
;;
|
||||
*-microblaze|*-nios2|*-or1k)
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
isoboot=
|
||||
;;
|
||||
*-ppc*)
|
||||
@ -65,12 +66,12 @@ case "$QEMUSYS" in
|
||||
extstorage="-drive if=virtio,file="
|
||||
isoboot=
|
||||
elif [[ $QEMUSYS = *64 ]]; then
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
qemuargs="-M mac99"
|
||||
append=
|
||||
else
|
||||
qemuargs="-M g3beige"
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
highmem=1024
|
||||
append=
|
||||
fi
|
||||
@ -85,12 +86,12 @@ case "$QEMUSYS" in
|
||||
*-sh4)
|
||||
append="console=ttySC1,115200"
|
||||
qemuargs="-M r2d"
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
isoboot=
|
||||
;;
|
||||
*-sparc)
|
||||
qemuargs="-M SS-5" # -cpu 'TI SuperSparc II'"
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
normmem=256 highmem=256
|
||||
;;
|
||||
*-s390x)
|
||||
@ -100,7 +101,7 @@ case "$QEMUSYS" in
|
||||
;;
|
||||
*-hppa64*)
|
||||
qemuargs="$qemuargs -machine C3700 -cpu hppa64"
|
||||
intstorage="-hda "
|
||||
intstorage="-hda " intstorage2="-hdb "
|
||||
QEMUSYS=${QEMUSYS%64*}
|
||||
;;
|
||||
*-*86*)
|
||||
@ -116,6 +117,6 @@ case "$QEMUSYS" in
|
||||
;;
|
||||
esac
|
||||
|
||||
[[ "$qemuargs" = *enable-kvm* ]] && qemuargs="$qemuargs -smp 2"
|
||||
[[ "$qemuargs" = *enable-kvm* ]] && qemuargs="$qemuargs -smp 4"
|
||||
|
||||
[ -e $SYSROOT/boot/$vmlinux ] || exit 42
|
||||
|
Loading…
x
Reference in New Issue
Block a user