Sololite does not support 3D GPU hardware acceleration.Hence, remove all the 3D libraries from graphics package for this machine.
Signed-off-by: Neena Busireddy <[email protected]> --- .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 28 +++++++++++++++++--- 1 file changed, 24 insertions(+), 4 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 2c383c4..eecb752 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 @@ -11,7 +11,9 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamag base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \ '', d), d)}" -PROVIDES += "virtual/wayland-egl virtual/libgl virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 virtual/libopenvg" +PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg" +PROVIDES_append_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2" +PROVIDES_append_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2" PE = "1" @@ -31,7 +33,6 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \ file://wayland-viv.pc \ file://directfbrc \ " - PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ libgl-mx6 libgl-mx6-dev libgl-mx6-dbg \ libgles-mx6 libgles-mx6-dev libgles-mx6-dbg \ @@ -49,7 +50,6 @@ PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ libgc-wayland-protocol-mx6 libgc-wayland-protocol-mx6-dev libgc-wayland-protocol-mx6-dbg \ libwayland-egl-mx6-dev \ " - # Skip package if it does not match the machine float-point type in use python __anonymous () { is_machine_hardfp = base_contains("TUNE_FEATURES", "callconvention-hard", True, False, d) @@ -104,6 +104,9 @@ python __anonymous() { d.appendVar("RCONFLICTS_" + fullp, pkgs) } +IS_MX6SL = "0" +IS_MX6SL_mx6sl = "1" + do_install () { install -d ${D}${libdir} install -d ${D}${includedir} @@ -184,7 +187,23 @@ do_install () { for backend in wl x11 fb dfb; do find ${D}${libdir} -name "*-$backend.so" -exec rm '{}' ';' done - + # FIXME: MX6SL does not have 3D support; hack it for now + if [ "${IS_MX6SL}" = "1" ]; then + rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \ + \ + ${D}${libdir}/libGL* ${D}${includedir}/GL* \ + \ + ${D}${libdir}/libGLES* \ + \ + ${D}${libdir}/libOpenCL* \ + \ + ${D}${libdir}/libOpenVG.so ${D}${libdir}/libOpenVG_3D.so \ + \ + ${D}/opt/viv_samples/vdk \ + ${D}/opt/viv_samples/es20 ${D}/opt/viv_samples/cl11 + + ln -sf ${D}${libdir}/libOpenVG_355.so ${D}${libdir}/libOpenVG.so + fi find ${D}${libdir} -type f -exec chmod 644 {} \; find ${D}${includedir} -type f -exec chmod 644 {} \; } @@ -233,6 +252,7 @@ FILES_libopencl-mx6-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" FILES_libopencl-mx6-dbg = "${libdir}/.debug/libOpenCL${SOLIBS}" RDEPENDS_libopencl-mx6 = "libclc-mx6" +INSANE_SKIP_libopenvg-mx6 += "dev-so" FILES_libopenvg-mx6 = "${libdir}/libOpenVG*${SOLIBS}" FILES_libopenvg-mx6-dev = "${includedir}/VG ${libdir}/libOpenVG*${SOLIBSDEV} ${libdir}/pkgconfig/vg.pc" FILES_libopenvg-mx6-dbg = "${libdir}/.debug/libOpenVG*${SOLIBS}" -- 1.7.9.5 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
