diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2016-07-01 15:39:12 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-09-08 11:24:25 -0300 |
commit | 410f5a404c12db9b34d29e9b8f62c523d0790a84 (patch) | |
tree | 80d68a36af66f84687b59d2b8b0a604b344040f2 | |
parent | 627c958c61f006e852cd2353c289117424e79bbc (diff) | |
download | meta-freescale-410f5a404c12db9b34d29e9b8f62c523d0790a84.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.inc | 13 |
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 e99c4a1a..8536461d 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 | ||
15 | EXTRA_PROVIDES = "" | 15 | EXTRA_PROVIDES = "" |
16 | EXTRA_PROVIDES_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2" | 16 | EXTRA_PROVIDES_imxgpu3d = " virtual/libgl virtual/libgles1 virtual/libgles2" |
17 | EXTRA_PROVIDES_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2" | ||
18 | EXTRA_PROVIDES_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2" | ||
19 | PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}" | 17 | PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}" |
20 | 18 | ||
21 | PE = "1" | 19 | PE = "1" |
@@ -94,8 +92,8 @@ python __anonymous() { | |||
94 | d.appendVar("RCONFLICTS_" + fullp, pkgs) | 92 | d.appendVar("RCONFLICTS_" + fullp, pkgs) |
95 | } | 93 | } |
96 | 94 | ||
97 | IS_MX6SL = "0" | 95 | IMXGPU_imxgpu3d = "3d" |
98 | IS_MX6SL_mx6sl = "1" | 96 | IMXGPU_imxgpu2d = "2d" |
99 | 97 | ||
100 | do_install () { | 98 | do_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* \ |