diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-09-12 17:36:42 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-16 23:02:44 +0100 |
commit | 63f08ef4968576fca8d6f5d28d86d71c3e980b8e (patch) | |
tree | 5f6ef736a1ef409978a08397a13f40a350852ede /scripts | |
parent | f461ae8b4da443e972dee29058a8f2cae8b051c2 (diff) | |
download | poky-63f08ef4968576fca8d6f5d28d86d71c3e980b8e.tar.gz |
runqemu: decouple gtk and gl options
This will allow not having to multiply these options for the sdl
frontend, instead combining them as needed.
(From OE-Core rev: 922eb5012364b1603338cfa617712b941e892bbf)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 4415e9b69f..68ba7dcfb9 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -65,9 +65,10 @@ of the following environment variables (in any order): | |||
65 | MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified) | 65 | MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified) |
66 | Simplified QEMU command-line options can be passed with: | 66 | Simplified QEMU command-line options can be passed with: |
67 | nographic - disable video console | 67 | nographic - disable video console |
68 | sdl - choose the SDL frontend instead of the Gtk+ default | 68 | sdl - choose the SDL UI frontend |
69 | gtk-gl - enable virgl-based GL acceleration using Gtk+ frontend | 69 | gtk - choose the Gtk UI frontend |
70 | gtk-gl-es - enable virgl-based GL acceleration, using OpenGL ES and Gtk+ frontend | 70 | gl - enable virgl-based GL acceleration (also needs gtk option) |
71 | gl-es - enable virgl-based GL acceleration, using OpenGL ES (also needs gtk option) | ||
71 | egl-headless - enable headless EGL output; use vnc or spice to see it | 72 | egl-headless - enable headless EGL output; use vnc or spice to see it |
72 | serial - enable a serial console on /dev/ttyS0 | 73 | serial - enable a serial console on /dev/ttyS0 |
73 | 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) |
@@ -436,10 +437,16 @@ class BaseConfig(object): | |||
436 | self.kernel_cmdline_script += ' console=ttyS0' | 437 | self.kernel_cmdline_script += ' console=ttyS0' |
437 | elif arg == 'sdl': | 438 | elif arg == 'sdl': |
438 | self.qemu_opt_script += ' -display sdl' | 439 | self.qemu_opt_script += ' -display sdl' |
439 | elif arg == 'gtk-gl': | 440 | elif arg == 'gtk': |
440 | self.qemu_opt_script += ' -vga virtio -display gtk,gl=on' | 441 | if 'gl' in sys.argv[1:]: |
441 | elif arg == 'gtk-gl-es': | 442 | self.qemu_opt_script += ' -vga virtio -display gtk,gl=on' |
442 | self.qemu_opt_script += ' -vga virtio -display gtk,gl=es' | 443 | elif 'gl-es' in sys.argv[1:]: |
444 | self.qemu_opt_script += ' -vga virtio -display gtk,gl=es' | ||
445 | else: | ||
446 | self.qemu_opt_script += ' -display gtk' | ||
447 | elif arg == 'gl' or arg == 'gl-es': | ||
448 | # These args are handled inside sdl or gtk blocks above | ||
449 | pass | ||
443 | elif arg == 'egl-headless': | 450 | elif arg == 'egl-headless': |
444 | self.qemu_opt_script += ' -vga virtio -display egl-headless' | 451 | self.qemu_opt_script += ' -vga virtio -display egl-headless' |
445 | # As runqemu can be run within bitbake (when using testimage, for example), | 452 | # As runqemu can be run within bitbake (when using testimage, for example), |