summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasyl Vavrychuk <vvavrychuk@gmail.com>2020-08-17 16:57:28 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-27 08:25:50 +0100
commit4fe9a766d6357e88a024e14c732db33c9747cad5 (patch)
treec523a80b3c2cf751373dbe0c3d03f16b0f3a4d64
parent30004e7cfb614facc5da99ac905e3a7a8290f9d5 (diff)
downloadpoky-4fe9a766d6357e88a024e14c732db33c9747cad5.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: bec0a45393d968251059f5075add2cf633aecd1a) Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 4d1e93d4bf013bb0c48032bfda43f77c5aba9ecf) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 310d79fdc5..398f0a0910 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -454,7 +454,8 @@ class BaseConfig(object):
454 self.qemu_opt_script += ' -display gtk' 454 self.qemu_opt_script += ' -display gtk'
455 elif arg == 'gl' or arg == 'gl-es': 455 elif arg == 'gl' or arg == 'gl-es':
456 # These args are handled inside sdl or gtk blocks above 456 # These args are handled inside sdl or gtk blocks above
457 pass 457 if ('gtk' not in sys.argv) and ('sdl' not in sys.argv):
458 raise RunQemuError('Option %s also needs gtk or sdl option.' % (arg))
458 elif arg == 'egl-headless': 459 elif arg == 'egl-headless':
459 self.qemu_opt_script += ' -vga virtio -display egl-headless' 460 self.qemu_opt_script += ' -vga virtio -display egl-headless'
460 # As runqemu can be run within bitbake (when using testimage, for example), 461 # As runqemu can be run within bitbake (when using testimage, for example),