summaryrefslogtreecommitdiff
path: root/debvm-run
diff options
context:
space:
mode:
authorJochen Sprickerhof <git@jochen.sprickerhof.de>2022-12-21 20:09:03 +0100
committerJochen Sprickerhof <git@jochen.sprickerhof.de>2022-12-22 13:58:40 +0100
commitaadbcc92761cf3bbc730ccf39aa5e09d22f343db (patch)
tree330c39ddaabb0f081168fe80054783341968c16a /debvm-run
parent8098d9d558a1e52736af4183a0e0152300193c54 (diff)
downloaddebvm-aadbcc92761cf3bbc730ccf39aa5e09d22f343db.tar.gz
Support mips* (Closes: #1)
Diffstat (limited to 'debvm-run')
-rwxr-xr-xdebvm-run13
1 files changed, 10 insertions, 3 deletions
diff --git a/debvm-run b/debvm-run
index 9b26a76..96058d5 100755
--- a/debvm-run
+++ b/debvm-run
@@ -93,7 +93,6 @@ set -- \
-no-user-config \
-name "debvm-run $IMAGE" \
-m 1G \
- -smp "$(nproc)" \
-kernel "$KERNELTMP" \
-initrd "$INITRDTMP" \
-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 \
@@ -117,17 +116,25 @@ else
case "$VMARCH" in
arm64)
QEMU=qemu-system-aarch64
- set -- -machine virt -cpu max "$@"
+ set -- -machine virt -cpu max -smp "$(nproc)" "$@"
;;
arm|armel|armhf)
QEMU=qemu-system-arm
- set -- -machine virt -cpu max "$@"
+ set -- -machine virt -cpu max -smp "$(nproc)" "$@"
;;
ppc64el)
QEMU=qemu-system-ppc64
;;
+ mips64el)
+ QEMU="qemu-system-$VMARCH"
+ set -- -cpu 5KEc "$@"
+ ;;
+ mipsel)
+ QEMU="qemu-system-$VMARCH"
+ ;;
*)
QEMU="qemu-system-$VMARCH"
+ set -- -smp "$(nproc)" "$@"
;;
esac
fi