summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2016-07-01 15:39:12 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2016-09-08 11:00:39 -0300
commita20f3344c564a0f388fe81c9c4f9aa6747e72578 (patch)
tree7d7c6348cfc9489d86e4b745132f7a56421776bb
parentfcd13d5eec375bac6c1989f2572a3be39668ef67 (diff)
downloadmeta-fsl-arm-a20f3344c564a0f388fe81c9c4f9aa6747e72578.tar.gz
imx-gpu-viv: Refactor code to use the new overrides
The recipe has been reworked to use the 'imxgpu2d' and 'imxgpu3d' feature overrides. While on that, the i.MX6SL specific code has been reworked to used when only 2D GPU support is available. Change-Id: Ied0415ed9e8cc27682d8516e432165e6327a6773 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc13
1 files changed, 6 insertions, 7 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
index e99c4a1..8536461 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
@@ -13,9 +13,7 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxd
13 libpng" 13 libpng"
14 14
15EXTRA_PROVIDES = "" 15EXTRA_PROVIDES = ""
16EXTRA_PROVIDES_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2" 16EXTRA_PROVIDES_imxgpu3d = " virtual/libgl virtual/libgles1 virtual/libgles2"
17EXTRA_PROVIDES_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2"
18EXTRA_PROVIDES_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2"
19PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}" 17PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}"
20 18
21PE = "1" 19PE = "1"
@@ -94,8 +92,8 @@ python __anonymous() {
94 d.appendVar("RCONFLICTS_" + fullp, pkgs) 92 d.appendVar("RCONFLICTS_" + fullp, pkgs)
95} 93}
96 94
97IS_MX6SL = "0" 95IMXGPU_imxgpu3d = "3d"
98IS_MX6SL_mx6sl = "1" 96IMXGPU_imxgpu2d = "2d"
99 97
100do_install () { 98do_install () {
101 install -d ${D}${libdir} 99 install -d ${D}${libdir}
@@ -182,8 +180,9 @@ do_install () {
182 find ${D}${libdir} -name "*.$backend.so" -exec rm '{}' ';' 180 find ${D}${libdir} -name "*.$backend.so" -exec rm '{}' ';'
183 done 181 done
184 182
185 # FIXME: MX6SL does not have 3D support; hack it for now 183 # FIXME: For 2D only GPU, we need to remove some content which is
186 if [ "${IS_MX6SL}" = "1" ]; then 184 # 3D specific.
185 if [ "${IMXGPU}" = "2d" ]; then
187 rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \ 186 rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \
188 \ 187 \
189 ${D}${libdir}/libGL* ${D}${includedir}/GL* \ 188 ${D}${libdir}/libGL* ${D}${includedir}/GL* \