aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Kroon <jacob.kroon@mikrodidakt.se>2014-07-17 10:59:16 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2014-08-05 17:17:40 -0300
commitdf15dc7c9e1291cbd4b59bb8562adf0849bda061 (patch)
tree77587507e29022458d660416a78f33b8c5fc74ea
parent3f8775d7c96422d5047b2a07313fb69f6ff1d902 (diff)
downloadmeta-fsl-arm-df15dc7c9e1291cbd4b59bb8562adf0849bda061.tar.gz
meta-fsl-arm-df15dc7c9e1291cbd4b59bb8562adf0849bda061.tar.bz2
meta-fsl-arm-df15dc7c9e1291cbd4b59bb8562adf0849bda061.zip
gpu-viv-bin-mx6q: Don't package wayland libraries in non-wayland builds
Running readelf --dynamic libgc_wayland_protocol.so | grep NEEDED shows that the library has a runtime dependency on libffi. Same thing applies to libwayland-viv.so. For non-wayland builds, where libffi may or may not be available during package time, skip packaging them so that they don't cause unexpected dependency changes in buildhistory. Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
index 4106848..0db37c3 100644
--- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
+++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
@@ -174,6 +174,12 @@ do_install () {
ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2
ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so
+ # skip packaging wayland libraries if no support is requested
+ if [ "${USE_WL}" = "no" ]; then
+ rm ${D}${libdir}/libgc_wayland_protocol.*
+ rm ${D}${libdir}/libwayland-viv.*
+ fi
+
for backend in wl x11 fb dfb; do
find ${D}${libdir} -name "*-$backend.so" -exec rm '{}' ';'
done