<div dir="ltr">See <a href="http://git.openembedded.org/openembedded-core-contrib/log/?h=jansa/qemu">http://git.openembedded.org/openembedded-core-contrib/log/?h=jansa/qemu</a> + <a href="http://git.openembedded.org/meta-openembedded-contrib/log/?h=jansa/spice">http://git.openembedded.org/meta-openembedded-contrib/log/?h=jansa/spice</a> for more qemu related changes.<div><br></div><div>More info:</div><div><a href="http://lists.openembedded.org/pipermail/openembedded-core/2017-September/142349.html">http://lists.openembedded.org/pipermail/openembedded-core/2017-September/142349.html</a><br></div><div><br></div><div>and that&#39;s basically where I&#39;m still stuck (and why haven&#39;t sent most of these patches yet), because it works fine &quot;natively&quot; but when the qemu-native is running inside of chroot or docker, I didn&#39;t get the acceleration working (from virt-viewer running &quot;natively&quot; - outside chroot/docker).</div><div><br></div><div>I plan to separate libsdl2 changes from this and send them with updated qemu upgrade as discussed with Ross.</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, May 10, 2018 at 11:31 PM Alistair Francis &lt;<a href="mailto:alistair.francis@wdc.com">alistair.francis@wdc.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Allow building libsdl2 for native and nativesdk. This is required to use<br>
libsdl2 in QEMU.<br>
<br>
Signed-off-by: Alistair Francis &lt;<a href="mailto:alistair.francis@wdc.com" target="_blank">alistair.francis@wdc.com</a>&gt;<br>
---<br>
 meta/recipes-graphics/libsdl2/<a href="http://libsdl2_2.0.8.bb" rel="noreferrer" target="_blank">libsdl2_2.0.8.bb</a> | 7 +++++++<br>
 1 file changed, 7 insertions(+)<br>
<br>
diff --git a/meta/recipes-graphics/libsdl2/<a href="http://libsdl2_2.0.8.bb" rel="noreferrer" target="_blank">libsdl2_2.0.8.bb</a> b/meta/recipes-graphics/libsdl2/<a href="http://libsdl2_2.0.8.bb" rel="noreferrer" target="_blank">libsdl2_2.0.8.bb</a><br>
index c0cf70d7fd..36508ec349 100644<br>
--- a/meta/recipes-graphics/libsdl2/<a href="http://libsdl2_2.0.8.bb" rel="noreferrer" target="_blank">libsdl2_2.0.8.bb</a><br>
+++ b/meta/recipes-graphics/libsdl2/<a href="http://libsdl2_2.0.8.bb" rel="noreferrer" target="_blank">libsdl2_2.0.8.bb</a><br>
@@ -42,6 +42,11 @@ PACKAGECONFIG ??= &quot; \<br>
     ${@bb.utils.filter(&#39;DISTRO_FEATURES&#39;, &#39;alsa directfb pulseaudio x11&#39;, d)} \<br>
     ${@bb.utils.contains(&#39;DISTRO_FEATURES&#39;, &#39;wayland&#39;, &#39;wayland gles2&#39;, &#39;&#39;, d)} \<br>
 &quot;<br>
+PACKAGECONFIG_class-native = &quot;${PACKAGECONFIG_GL} x11&quot;<br>
+PACKAGECONFIG_class-nativesdk = &quot;${PACKAGECONFIG_GL} \<br>
+                                 ${@bb.utils.filter(&#39;DISTRO_FEATURES&#39;, &#39;x11&#39;, d)} \<br>
+&quot;<br>
+<br>
 PACKAGECONFIG[alsa]       = &quot;--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,&quot;<br>
 PACKAGECONFIG[directfb]   = &quot;--enable-video-directfb,--disable-video-directfb,directfb&quot;<br>
 PACKAGECONFIG[gles2]      = &quot;--enable-video-opengles,--disable-video-opengles,virtual/libgles2&quot;<br>
@@ -63,3 +68,5 @@ do_configure_prepend() {<br>
 }<br>
<br>
 FILES_${PN}-dev += &quot;${libdir}/cmake&quot;<br>
+<br>
+BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
-- <br>
2.17.0<br>
<br>
</blockquote></div>