[meta-freescale] [meta-fsl-arm PATCH v2 11/16] imx-gpu-viv: Refactor code to use the new overrides
Tom Hochstein
tom.hochstein at nxp.com
Tue Sep 6 07:23:13 PDT 2016
> From: Otavio Salvador [mailto:otavio at ossystems.com.br]
> Sent: Thursday, September 01, 2016 5:21 PM
>
> 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.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>
> Changes in v2: None
>
> recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 13 ++++++-------
> 1 file 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
> libpng"
>
> EXTRA_PROVIDES = ""
> -EXTRA_PROVIDES_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2"
> -EXTRA_PROVIDES_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2"
> -EXTRA_PROVIDES_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2"
> +EXTRA_PROVIDES_imxgpu3d = " virtual/libgl virtual/libgles1 virtual/libgles2"
> PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}"
>
> PE = "1"
> @@ -94,8 +92,8 @@ python __anonymous() {
> d.appendVar("RCONFLICTS_" + fullp, pkgs)
> }
>
> -IS_MX6SL = "0"
> -IS_MX6SL_mx6sl = "1"
> +IMXGPU_imxgpu3d = "3d"
> +IMXGPU_imxgpu2d = "2d"
I thought the 'bare' variable was required as well, no?
IMXGPU = ""
Otherwise, I'm not sure if I understand the logic of the 2d/3d overrides. It looks like the intent is that we will have two cases, either 2d only or 2d and 3d, right? Perhaps a variable name change would make this logic a bit clearer:
IMXGPU2D_ONLY = "yes"
IMXGPU2D_ONLY_imxgpu3d = "no"
>
> do_install () {
> install -d ${D}${libdir}
> @@ -182,8 +180,9 @@ do_install () {
> 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
> + # FIXME: For 2D only GPU, we need to remove some content which is
> + # 3D specific.
> + if [ "${IMXGPU}" = "2d" ]; then
> rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \
> \
> ${D}${libdir}/libGL* ${D}${includedir}/GL* \
> --
> 2.9.3
More information about the meta-freescale
mailing list