summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-04-14 19:37:10 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-15 17:30:11 +0100
commit4b73b55c2d258768cda2bf7262ebb36bcb7fed5b (patch)
treed15801de1689c9fdf74416819f74176b2aa2d477 /scripts
parente1f21d0d3385f9d9f4316bf0039b287fd4b37fc8 (diff)
downloadopenembedded-core-contrib-4b73b55c2d258768cda2bf7262ebb36bcb7fed5b.tar.gz
runqemu: Do not auto detect graphics if publicvnc is specified
The graphics option auto detection logic added in 7f78bb7a was not checking if the publicvnc option had been specified, meaning that it would be ignored and the auto detection result used instead. Add setting a flag variable in the argument parsing and check it along with the ones for the other graphics backend options. Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 36af764b1b..6e1f073ed2 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -182,6 +182,7 @@ class BaseConfig(object):
self.gl = False
self.gl_es = False
self.egl_headless = False
+ self.publicvnc = False
self.novga = False
self.cleantap = False
self.saved_stty = ''
@@ -521,6 +522,7 @@ class BaseConfig(object):
elif arg == 'snapshot':
self.snapshot = True
elif arg == 'publicvnc':
+ self.publicvnc = True
self.qemu_opt_script += ' -vnc :0'
elif arg.startswith('tcpserial='):
self.tcpserial_portnum = '%s' % arg[len('tcpserial='):]
@@ -1366,7 +1368,7 @@ class BaseConfig(object):
# If we have no display option, we autodetect based upon what qemu supports. We
# need our font setup and show-cusor below so we need to see what qemu --help says
# is supported so we can pass our correct config in.
- if not self.nographic and not self.sdl and not self.gtk and not self.egl_headless == True:
+ if not self.nographic and not self.sdl and not self.gtk and not self.publicvnc and not self.egl_headless == True:
output = subprocess.check_output([self.qemu_bin, "--help"], universal_newlines=True)
if "-display gtk" in output:
self.gtk = True