[meta-freescale] [meta-fsl-demos][PATCH 1/2] fsl-gpu-sdk: Add support for i.MX 6SoloLite
Tom Hochstein
tom.hochstein at nxp.com
Thu Mar 31 17:36:37 PDT 2016
From: Neena Busireddy <neenareddy.busireddy at nxp.com>
Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com>
---
recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb b/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb
index 459ad34..2903f74 100644
--- a/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb
+++ b/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb
@@ -6,6 +6,7 @@ DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS} devil gstreamer1.0 gstreamer1.0-plugins-
DEPENDS_append_mx6q = " virtual/libgles2"
DEPENDS_append_mx6dl = " virtual/libgles2"
DEPENDS_append_mx6sx = " virtual/libgles2"
+DEPENDS_append_mx6sl = " virtual/libopenvg"
X11_DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'xrandr', '', d)}"
WL_DEPENDS = "${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
@@ -29,18 +30,29 @@ BACKEND = "${@base_contains('DISTRO_FEATURES', 'x11', 'X11', \
HAS_VPU = "1"
HAS_VPU_mx6sx = "0"
+IS_MX6SL = "0"
+IS_MX6SL_mx6sl = "1"
+
do_compile () {
export FSL_GRAPHICS_SDK=${S}
export FSL_PLATFORM_NAME=Yocto
export ROOTFS=${STAGING_DIR_HOST}
- ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
+ if [ "${IS_MX6SL}" = "0" ]; then
+ ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
+ else
+ ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
+ fi
}
do_install () {
export FSL_GRAPHICS_SDK=${S}
export FSL_PLATFORM_NAME=Yocto
install -d "${D}/opt/${PN}"
- ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
+ if [ "${IS_MX6SL}" = "0" ]; then
+ ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
+ else
+ ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
+ fi
cp -r bin/* "${D}/opt/${PN}"
if [ "${HAS_VPU}" = "0" ]; then
rm -rf ${D}/opt/${PN}/GLES2/DirectMultiSamplingVideoYUV
--
1.9.1
More information about the meta-freescale
mailing list