Also, add an option to use Gtk without virgl acceleration. Signed-off-by: Alexander Kanavin <alex.kana...@gmail.com> --- scripts/runqemu | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/scripts/runqemu b/scripts/runqemu index b5200106244..80d59424d78 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -65,9 +65,12 @@ 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 - gtk-gl - enable virgl-based GL acceleration using Gtk+ frontend - gtk-gl-es - enable virgl-based GL acceleration, using OpenGL ES and Gtk+ frontend + sdl - choose the SDL frontend without GL acceleration + sdl-gl - enable virgl-based GL acceleration using SDL frontend + sdl-gl-es - enable virgl-based GL acceleration, using OpenGL ES and SDL frontend + gtk - choose the Gtk frontend without GL acceleration + gtk-gl - enable virgl-based GL acceleration using Gtk frontend + gtk-gl-es - enable virgl-based GL acceleration, using OpenGL ES and Gtk frontend egl-headless - enable headless EGL output; use vnc or spice to see it serial - enable a serial console on /dev/ttyS0 serialstdio - enable a serial console on the console (regardless of graphics mode) @@ -436,6 +439,12 @@ class BaseConfig(object): self.kernel_cmdline_script += ' console=ttyS0' elif arg == 'sdl': self.qemu_opt_script += ' -display sdl' + elif arg == 'sdl-gl': + self.qemu_opt_script += ' -vga virtio -display sdl,gl=on' + elif arg == 'sdl-gl-es': + self.qemu_opt_script += ' -vga virtio -display sdl,gl=es' + elif arg == 'gtk': + self.qemu_opt_script += ' -display gtk' elif arg == 'gtk-gl': self.qemu_opt_script += ' -vga virtio -display gtk,gl=on' elif arg == 'gtk-gl-es': -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core