]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
runqemu: Allow auto detection of the correct graphics options
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Apr 2022 14:45:03 +0000 (15:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Apr 2022 08:46:35 +0000 (09:46 +0100)
commit7f78bb7a7baf67b9226fb460ca9e12fde6ef40c8
tree25ca080c6b08d64e3cd716ab185ef672c3e81f63
parentfc6c1951dd7e53791a9d92610dfc2eefab4c2a4a
runqemu: Allow auto detection of the correct graphics options

Running "runqemu qemux86 kvm" when qemu is configured for sdl and/or gtk
display output currently leads to a poor user experience with no cursor
and corrupted fonts in the gtk case. This is due to no options being
passed to qemu which leads to the loss of the font envirornment variable
and the show-cursor option.

If the user hasn't specified a display type, grep the output of
"qemu-system-xxx --help" for the display types and pick the "best"
which ensures our config is passed in. That resolves the gtk font issue
and the cursor issue with both sdl and gtk.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu