[meta-freescale] [distro][PATCH 5/6] imx-gpu-sdk: Use the new i.MX feature overrides

Fabio Berton fabio.berton at ossystems.com.br
Wed Oct 26 10:44:22 PDT 2016


Configure DEPENDS variable using new i.MX overrides and install packages
based on existence of 2D and/or 3D hardware.
Change do_compile and do_install tasks to run build.sh script based on
existence of 2D and/or 3D hardware.

Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
---
 recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb b/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb
index 6fdb105..6b80baa 100644
--- a/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb
+++ b/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb
@@ -3,10 +3,8 @@ DESCRIPTION = "Set of sample applications for i.MX GPU"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d4f548f93b5fe0ee2bc86758c344412d"
 DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS} assimp devil gstreamer1.0 gstreamer1.0-plugins-base"
-DEPENDS_append_mx6q = " virtual/libgles2"
-DEPENDS_append_mx6dl = " virtual/libgles2"
-DEPENDS_append_mx6sx = " virtual/libgles2"
-DEPENDS_append_mx6sl = " virtual/libopenvg"
+DEPENDS_append_imxgpu2d = " virtual/libopenvg"
+DEPENDS_append_imxgpu3d = " virtual/libgles2"
 
 X11_DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xrandr', '', d)}"
 WL_DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
@@ -28,14 +26,14 @@ SRC_URI += "file://Add-missing-cmath-include.patch"
 BACKEND = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'X11', \
                     bb.utils.contains('DISTRO_FEATURES', 'wayland', 'Wayland', 'FB', d), d)}"
 
-IS_MX6SL = "0"
-IS_MX6SL_mx6sl = "1"
+IMXGPU = "2d"
+IMXGPU_imxgpu3d = "3d"
 
 do_compile () {
     export FSL_GRAPHICS_SDK=${S}
     export FSL_PLATFORM_NAME=Yocto
     export ROOTFS=${STAGING_DIR_HOST}
-    if [ "${IS_MX6SL}" = "0" ]; then
+    if [ "${IMXGPU}" = "3d" ]; then
         ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
     else
         ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
@@ -46,7 +44,7 @@ do_install () {
     export FSL_GRAPHICS_SDK=${S}
     export FSL_PLATFORM_NAME=Yocto
     install -d "${D}/opt/${PN}"
-    if [ "${IS_MX6SL}" = "0" ]; then
+    if [ "${IMXGPU}" = "3d" ]; then
         ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
     else
         ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
-- 
2.1.4



More information about the meta-freescale mailing list