Update start-qemu

This commit is contained in:
Namhyeon Go 2021-11-15 01:46:41 +09:00 committed by GitHub
parent 68da4e7b73
commit b683911625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
6.1/start-qemu generated
View File

@ -13,6 +13,7 @@ set -e
# QEMU_NO_SSH=1 (suppress automatic port 22 forwarding)
# QEMU_NO_SERIAL=1 (suppress automatic "-serial stdio")
# QEMU_NO_VNC=1 (suppress automatic "-vnc ':0'")
# QENU_MACHINE (for example, "smdkc210" - Samsung SMDKC210 board (Exynos4210))
hostArch="$(uname -m)"
qemuArch="${QEMU_ARCH:-$hostArch}"
@ -103,6 +104,12 @@ if [ -z "${QEMU_NO_VNC:-}" ]; then
)
fi
if [ -z "${QEMU_MACHINE:-}" ]; then
qemuArgs+=(
--machine "${QEMU_MACHINE}"
)
fi
qemuArgs+=( "$@" )
set -x