<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's basically where I'm still stuck (and why haven't sent most of these patches yet), because it works fine "natively" but when the qemu-native is running inside of chroot or docker, I didn't get the acceleration working (from virt-viewer running "natively" - 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 <<a href="mailto:alistair.francis@wdc.com">alistair.francis@wdc.com</a>> 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 <<a href="mailto:alistair.francis@wdc.com" target="_blank">alistair.francis@wdc.com</a>><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 ??= " \<br>
${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \<br>
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \<br>
"<br>
+PACKAGECONFIG_class-native = "${PACKAGECONFIG_GL} x11"<br>
+PACKAGECONFIG_class-nativesdk = "${PACKAGECONFIG_GL} \<br>
+ ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \<br>
+"<br>
+<br>
PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"<br>
PACKAGECONFIG[directfb] = "--enable-video-directfb,--disable-video-directfb,directfb"<br>
PACKAGECONFIG[gles2] = "--enable-video-opengles,--disable-video-opengles,virtual/libgles2"<br>
@@ -63,3 +68,5 @@ do_configure_prepend() {<br>
}<br>
<br>
FILES_${PN}-dev += "${libdir}/cmake"<br>
+<br>
+BBCLASSEXTEND = "native nativesdk"<br>
-- <br>
2.17.0<br>
<br>
</blockquote></div>