diff options
author | Vasyl Vavrychuk <vvavrychuk@gmail.com> | 2020-08-17 16:57:28 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-19 10:57:44 +0100 |
commit | 21c13f75b56546b55e8e9e895bd7c2f8e98defe4 (patch) | |
tree | 228465b49b4b1e53d1177d0d248a1677962cb35c /scripts/runqemu | |
parent | 9e82d25fd3bed8be9949e40f3eb3b4623f3c0745 (diff) | |
download | poky-21c13f75b56546b55e8e9e895bd7c2f8e98defe4.tar.gz |
runqemu: Check gtk or sdl option is passed together with gl or gl-es options.
runqemu help reports that gtk or sdl option is needed with gl or gl-es
option. But if user forgot to add gtk or sdl option, then gl or gl-es
options were silently skipped.
(From OE-Core rev: 4d1e93d4bf013bb0c48032bfda43f77c5aba9ecf)
Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index c40acc4a86..7fb5f7db57 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -478,7 +478,8 @@ class BaseConfig(object): | |||
478 | self.qemu_opt_script += ' -display gtk,show-cursor=on' | 478 | self.qemu_opt_script += ' -display gtk,show-cursor=on' |
479 | elif arg == 'gl' or arg == 'gl-es': | 479 | elif arg == 'gl' or arg == 'gl-es': |
480 | # These args are handled inside sdl or gtk blocks above | 480 | # These args are handled inside sdl or gtk blocks above |
481 | pass | 481 | if ('gtk' not in sys.argv) and ('sdl' not in sys.argv): |
482 | raise RunQemuError('Option %s also needs gtk or sdl option.' % (arg)) | ||
482 | elif arg == 'egl-headless': | 483 | elif arg == 'egl-headless': |
483 | self.set_dri_path() | 484 | self.set_dri_path() |
484 | self.qemu_opt_script += ' -vga virtio -display egl-headless,show-cursor=on' | 485 | self.qemu_opt_script += ' -vga virtio -display egl-headless,show-cursor=on' |