<div dir="ltr">You&#39;re duplicating nographic elif</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 14, 2019 at 4:06 PM Alexander Kanavin &lt;<a href="mailto:alex.kanavin@gmail.com">alex.kanavin@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Also, do not hardcode -vga option to qemu, set it according to command line parameters.<br>
<br>
Signed-off-by: Alexander Kanavin &lt;<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>&gt;<br>
---<br>
 meta/conf/machine/include/qemuboot-x86.inc |  2 +-<br>
 scripts/runqemu                            | 11 +++++++++++<br>
 2 files changed, 12 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/meta/conf/machine/include/qemuboot-x86.inc b/meta/conf/machine/include/qemuboot-x86.inc<br>
index 5fdbe4df50e..574b7bbfc7d 100644<br>
--- a/meta/conf/machine/include/qemuboot-x86.inc<br>
+++ b/meta/conf/machine/include/qemuboot-x86.inc<br>
@@ -11,7 +11,7 @@ QB_CPU_KVM_x86-64 = &quot;-cpu core2duo&quot;<br>
 QB_AUDIO_DRV = &quot;alsa&quot;<br>
 QB_AUDIO_OPT = &quot;-soundhw ac97,es1370&quot;<br>
 QB_KERNEL_CMDLINE_APPEND = &quot;vga=0 uvesafb.mode_option=${UVESA_MODE} oprofile.timer=1 uvesafb.task_timeout=-1&quot;<br>
-QB_OPT_APPEND = &quot;-vga vmware -show-cursor -usb -device usb-tablet&quot;<br>
+QB_OPT_APPEND = &quot;-show-cursor -usb -device usb-tablet&quot;<br>
 # Add the &#39;virtio-rng-pci&#39; device otherwise the guest may run out of entropy<br>
 QB_OPT_APPEND += &quot;-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0&quot;<br>
<br>
diff --git a/scripts/runqemu b/scripts/runqemu<br>
index c4a0ca811d9..fa88dc4583c 100755<br>
--- a/scripts/runqemu<br>
+++ b/scripts/runqemu<br>
@@ -74,6 +74,8 @@ of the following environment variables (in any order):<br>
   MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified)<br>
   Simplified QEMU command-line options can be passed with:<br>
     nographic - disable video console<br>
+    gl - enable virgl-based GL acceleration<br>
+    gl-es - enable virgl-based GL acceleration, using OpenGL ES<br>
     serial - enable a serial console on /dev/ttyS0<br>
     serialstdio - enable a serial console on the console (regardless of graphics mode)<br>
     slirp - enable user networking, no root privileges is required<br>
@@ -427,12 +429,21 @@ class BaseConfig(object):<br>
                 sys.argv.remove(quiet)<br>
<br>
         unknown_arg = &quot;&quot;<br>
+        if &#39;gl&#39; not in sys.argv[1:] and &#39;gl-es&#39; not in sys.argv[1:]:<br>
+            self.qemu_opt_script += &#39; -vga vmware&#39;<br>
         for arg in sys.argv[1:]:<br>
             if arg in self.fstypes + self.vmtypes:<br>
                 self.check_arg_fstype(arg)<br>
             elif arg == &#39;nographic&#39;:<br>
                 self.qemu_opt_script += &#39; -nographic&#39;<br>
                 self.kernel_cmdline_script += &#39; console=ttyS0&#39;<br>
+            elif arg == &#39;gl&#39;:<br>
+                self.qemu_opt_script += &#39; -vga virtio -display gtk,gl=on&#39;<br>
+            elif arg == &#39;gl-es&#39;:<br>
+                self.qemu_opt_script += &#39; -vga virtio -display gtk,gl=es&#39;<br>
+            elif arg == &#39;nographic&#39;:<br>
+                self.qemu_opt_script += &#39; -nographic&#39;<br>
+                self.kernel_cmdline_script += &#39; console=ttyS0&#39;<br>
             elif arg == &#39;serial&#39;:<br>
                 self.kernel_cmdline_script += &#39; console=ttyS0&#39;<br>
                 self.serialconsole = True<br>
-- <br>
2.17.1<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>