Skip to content

Commit

Permalink
qemu-wrapper: --display option to allow QEMU show target display
Browse files Browse the repository at this point in the history
Signed-off-by: Kosyrev Serge <[email protected]>
  • Loading branch information
deepfire authored and Kosyrev Serge committed Jan 12, 2017
1 parent bb623e9 commit 4cad1eb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tools/qemu-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ SMP=${SMP:-2}
# Grab NIC_MODEL from env, if unset default to e1000
NIC_MODEL="${NIC_MODEL:-e1000}"
DEBUGCON="debugcon.out"
NO_DISPLAY="-display none"


usage () {
Expand All @@ -42,6 +43,7 @@ usage () {
echo " --nic-model <name> (nic model to use, defaults to $NIC_MODEL)"
echo " --hagfish <file> (Hagfish boot loader, defaults to $HAGFISH_LOCATION)"
echo " --debugcon <file> (Enable QEMU debug port & qemu_debug_puts() (x86-*-only))"
echo " --display (Do not disable QEMU display)"
echo " "
echo " The following environment variables are considered:"
echo " QEMU_PATH (Path for qemu-system-* binary)"
Expand Down Expand Up @@ -94,6 +96,9 @@ while test $# != 0; do
"--debugcon")
shift; DEBUGCON="$1"
;;
"--display")
NO_DISPLAY=""
;;
*)
echo "Unknown option $1 (try: --help)" >&2
exit 1
Expand Down Expand Up @@ -298,7 +303,7 @@ if test -z "$EFI"; then
-serial $SERIAL_OUTPUT \
-gdb tcp::$PORT \
-S \
-display none \
${NO_DISPLAY} \
-daemonize \
-pidfile $PIDFILE"
else
Expand All @@ -308,7 +313,7 @@ if test -z "$EFI"; then
-serial $SERIAL_OUTPUT \
-gdb tcp::$PORT \
-S \
-display none \
${NO_DISPLAY} \
-daemonize \
-pidfile $PIDFILE"
fi
Expand All @@ -317,7 +322,7 @@ else
-serial $SERIAL_OUTPUT \
-gdb tcp::$PORT \
-S \
-display none \
${NO_DISPLAY} \
-daemonize \
-pidfile $PIDFILE"
fi
Expand Down

0 comments on commit 4cad1eb

Please sign in to comment.