summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-11-18 15:28:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-22 23:13:06 +0000
commit221e94e6d38bf03d348ea1f4eb922fa22a7f502e (patch)
treec3928526a98bb9566253ef03bc51af8702cd4c63
parente18bb3f56bfe7c3a6ad2998dd25c5c48763b0821 (diff)
downloadpoky-221e94e6d38bf03d348ea1f4eb922fa22a7f502e.tar.gz
runqemu: add options that enable virgl with the SDL frontend
(From OE-Core rev: c2564c7554a664ed26e010c67080fc784cff682a) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index a05facd0db..5c56c3fe6c 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -67,9 +67,9 @@ of the following environment variables (in any order):
67 nographic - disable video console 67 nographic - disable video console
68 sdl - choose the SDL UI frontend 68 sdl - choose the SDL UI frontend
69 gtk - choose the Gtk UI frontend 69 gtk - choose the Gtk UI frontend
70 gl - enable virgl-based GL acceleration (also needs gtk option) 70 gl - enable virgl-based GL acceleration (also needs gtk or sdl options)
71 gl-es - enable virgl-based GL acceleration, using OpenGL ES (also needs gtk option) 71 gl-es - enable virgl-based GL acceleration, using OpenGL ES (also needs gtk or sdl options)
72 egl-headless - enable headless EGL output; use vnc or spice to see it 72 egl-headless - enable headless EGL output; use vnc (via publicvnc option) or spice to see it
73 serial - enable a serial console on /dev/ttyS0 73 serial - enable a serial console on /dev/ttyS0
74 serialstdio - enable a serial console on the console (regardless of graphics mode) 74 serialstdio - enable a serial console on the console (regardless of graphics mode)
75 slirp - enable user networking, no root privileges is required 75 slirp - enable user networking, no root privileges is required
@@ -437,7 +437,12 @@ class BaseConfig(object):
437 self.qemu_opt_script += ' -nographic' 437 self.qemu_opt_script += ' -nographic'
438 self.kernel_cmdline_script += ' console=ttyS0' 438 self.kernel_cmdline_script += ' console=ttyS0'
439 elif arg == 'sdl': 439 elif arg == 'sdl':
440 self.qemu_opt_script += ' -display sdl' 440 if 'gl' in sys.argv[1:]:
441 self.qemu_opt_script += ' -vga virtio -display sdl,gl=on'
442 elif 'gl-es' in sys.argv[1:]:
443 self.qemu_opt_script += ' -vga virtio -display sdl,gl=es'
444 else:
445 self.qemu_opt_script += ' -display sdl'
441 elif arg == 'gtk': 446 elif arg == 'gtk':
442 if 'gl' in sys.argv[1:]: 447 if 'gl' in sys.argv[1:]:
443 self.qemu_opt_script += ' -vga virtio -display gtk,gl=on' 448 self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'