]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: add an option to choose the SDL frontend instead of Gtk+ default
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 3 Mar 2019 11:27:44 +0000 (12:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Mar 2019 14:13:27 +0000 (14:13 +0000)
When Gtk+ and SDL are both enabled, qemu defaults to Gtk+.
This option allows to revert to the 'classic' frontend.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu

index ec6188ba4a2f829f6875e4ca027c7af326b83d4e..bbf539a8e6778594b38064d15b8600ab854d8d58 100755 (executable)
@@ -74,6 +74,7 @@ of the following environment variables (in any order):
   MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified)
   Simplified QEMU command-line options can be passed with:
     nographic - disable video console
+    sdl - choose the SDL frontend instead of the Gtk+ default
     gl - enable virgl-based GL acceleration
     gl-es - enable virgl-based GL acceleration, using OpenGL ES
     egl-headless - enable headless EGL output; use vnc or spice to see it
@@ -404,6 +405,8 @@ class BaseConfig(object):
             elif arg == 'nographic':
                 self.qemu_opt_script += ' -nographic'
                 self.kernel_cmdline_script += ' console=ttyS0'
+            elif arg == 'sdl':
+                self.qemu_opt_script += ' -display sdl'
             elif arg == 'gl':
                 self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'
             elif arg == 'gl-es':