summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-03-03 12:27:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-04 14:27:06 +0000
commitd66c25c39cc1b4fbc193b4f059e9f1a5d46f929d (patch)
tree2dcfa03b0575be2259d011baabee0342215f7ff8 /scripts
parentdfbf7b935c07d3ac53c00446ea7dc86304407e04 (diff)
downloadpoky-d66c25c39cc1b4fbc193b4f059e9f1a5d46f929d.tar.gz
runqemu: add an option to choose the SDL frontend instead of Gtk+ default
When Gtk+ and SDL are both enabled, qemu defaults to Gtk+. This option allows to revert to the 'classic' frontend. (From OE-Core rev: 34ee1d8b11ecc9bb7acaf9d61b8b7c954306f1ae) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index ec6188ba4a..bbf539a8e6 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -74,6 +74,7 @@ of the following environment variables (in any order):
74 MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified) 74 MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified)
75 Simplified QEMU command-line options can be passed with: 75 Simplified QEMU command-line options can be passed with:
76 nographic - disable video console 76 nographic - disable video console
77 sdl - choose the SDL frontend instead of the Gtk+ default
77 gl - enable virgl-based GL acceleration 78 gl - enable virgl-based GL acceleration
78 gl-es - enable virgl-based GL acceleration, using OpenGL ES 79 gl-es - enable virgl-based GL acceleration, using OpenGL ES
79 egl-headless - enable headless EGL output; use vnc or spice to see it 80 egl-headless - enable headless EGL output; use vnc or spice to see it
@@ -404,6 +405,8 @@ class BaseConfig(object):
404 elif arg == 'nographic': 405 elif arg == 'nographic':
405 self.qemu_opt_script += ' -nographic' 406 self.qemu_opt_script += ' -nographic'
406 self.kernel_cmdline_script += ' console=ttyS0' 407 self.kernel_cmdline_script += ' console=ttyS0'
408 elif arg == 'sdl':
409 self.qemu_opt_script += ' -display sdl'
407 elif arg == 'gl': 410 elif arg == 'gl':
408 self.qemu_opt_script += ' -vga virtio -display gtk,gl=on' 411 self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'
409 elif arg == 'gl-es': 412 elif arg == 'gl-es':