summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2012-12-21 08:04:53 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-26 11:34:07 +0000
commitae84362fcce244d81b2c14773b218db0c2ac02f7 (patch)
tree0dc65c65c233fc48928e855792dd2abfab2069f1 /scripts/runqemu
parent4491154b213ff342303298a869cfb26ea20e7b14 (diff)
downloadpoky-ae84362fcce244d81b2c14773b218db0c2ac02f7.tar.gz
runqemu: change terminal's INTR key in 'serial' mode
If you are using an image in '-serial stdio' mode, temporarily change the terminal's interrupt character to 'Ctrl-]' for the duration of the image run. In this way, hitting 'Ctrl-C' for something running in the image doesn't accidentally abort the entire qemu session. (From OE-Core rev: 642cfaac0cb515008cfc91aafe04ab1db7a51581) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index b8148ef55e..188eccf003 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -64,6 +64,7 @@ LAZY_ROOTFS=""
64SCRIPT_QEMU_OPT="" 64SCRIPT_QEMU_OPT=""
65SCRIPT_QEMU_EXTRA_OPT="" 65SCRIPT_QEMU_EXTRA_OPT=""
66SCRIPT_KERNEL_OPT="" 66SCRIPT_KERNEL_OPT=""
67SERIALSTDIO=""
67 68
68# Determine whether the file is a kernel or QEMU image, and set the 69# Determine whether the file is a kernel or QEMU image, and set the
69# appropriate variables 70# appropriate variables
@@ -138,6 +139,7 @@ while true; do
138 "serial") 139 "serial")
139 SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio" 140 SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio"
140 SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" 141 SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
142 SERIALSTDIO="1"
141 ;; 143 ;;
142 "qemuparams="*) 144 "qemuparams="*)
143 SCRIPT_QEMU_EXTRA_OPT="${arg##qemuparams=}" 145 SCRIPT_QEMU_EXTRA_OPT="${arg##qemuparams=}"