Skip to contentSkip to conversation

fsl-gpu-sdk: Add support for i.MX 6SoloLite

PATCH New Tom Hochstein 1 participant 2 messages Apr 1, 2016

lore
Share & tools
lore
#1 lore raw

PATCH v2 2/2 fsl-gpu-sdk: Upgrade to version 2.2.2

In reply to Tom Hochstein

- Don't use framebuffer API in Wayland client applications
- Remove un-necessary gles2 library build from openvg client builds

---
 ...001-update-gstreamer1.0-include-directory.patch | 22 ----------------------
 .../{fsl-gpu-sdk_2.2.1.bb => fsl-gpu-sdk_2.2.2.bb} |  8 ++++----
 2 files changed, 4 insertions(+), 26 deletions(-)
 delete mode 100644 recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk/0001-update-gstreamer1.0-include-directory.patch
 rename recipes-graphics/fsl-gpu-sdk/{fsl-gpu-sdk_2.2.1.bb => fsl-gpu-sdk_2.2.2.bb} (88%)
recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk/0001-update-gstreamer1.0-include-directory.patch deleted +0 -22
deleted file mode 100644
index d5edaa6..0000000
@@ -1,22 +0,0 @@
-diff -ruN a/DemoApps/GLES2/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto b/DemoApps/GLES2/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto
---- a/DemoApps/GLES2/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto	2015-10-24 02:49:55.000000000 +0800
-+++ b/DemoApps/GLES2/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto	2015-11-09 13:26:27.369099790 +0800
-@@ -31,6 +31,7 @@
-   $(FSL_GRAPHICS_SDK)/DemoFramework/FslGraphicsGLES2/include \
-   $(PKG_CONFIG_SYSROOT_DIR)/usr/include/glib-2.0 \
-   $(PKG_CONFIG_SYSROOT_DIR)/usr/include/gstreamer-1.0 \
-+  $(PKG_CONFIG_SYSROOT_DIR)/usr/lib/gstreamer-1.0/include \
-   $(PKG_CONFIG_SYSROOT_DIR)/usr/lib/glib-2.0/include
-
- CPP_DEFINE_FLAG_NAMES=\
-diff -ruN a/DemoApps/GLES3/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto b/DemoApps/GLES3/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto
---- a/DemoApps/GLES3/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto	2015-10-24 02:49:55.000000000 +0800
-+++ b/DemoApps/GLES3/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto	2015-11-09 13:26:27.393099789 +0800
-@@ -31,6 +31,7 @@
-   $(FSL_GRAPHICS_SDK)/DemoFramework/FslGraphicsGLES3/include \
-   $(PKG_CONFIG_SYSROOT_DIR)/usr/include/glib-2.0 \
-   $(PKG_CONFIG_SYSROOT_DIR)/usr/include/gstreamer-1.0 \
-+  $(PKG_CONFIG_SYSROOT_DIR)/usr/lib/gstreamer-1.0/include \
-   $(PKG_CONFIG_SYSROOT_DIR)/usr/lib/glib-2.0/include
-
- CPP_DEFINE_FLAG_NAMES=\
recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.2.bb renamed from recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb +4 -4
similarity index 88%
rename from recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb
rename to recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.2.bb
index 2903f74..82a29d9 100644
@@ -1,7 +1,7 @@
 SUMMARY = "Freescale GPU SDK Samples"
 DESCRIPTION = "Set of sample applications for Freescale GPU"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://COPYING;md5=3880bb9c943b135a30fad5e8aabd3ee9"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8cf95184c220e247b9917e7244124c5a"
 DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS} devil gstreamer1.0 gstreamer1.0-plugins-base"
 DEPENDS_append_mx6q = " virtual/libgles2"
 DEPENDS_append_mx6dl = " virtual/libgles2"
@@ -19,10 +19,10 @@ RREPLACES_${PN} = "vivante-gpu-sdk"
 RCONFLICTS_${PN} = "vivante-gpu-sdk"
 
 SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
-           file://0001-update-gstreamer1.0-include-directory.patch"
+"
 
-SRC_URI[md5sum] = "92575bc028cea9ac7a3c2a05f7848926"
-SRC_URI[sha256sum] = "c57103cbfaf74abec795130c7ea6ce9801f8cfd5c08832498d0a1ec21f178ebc"
+SRC_URI[md5sum] = "79b40d39f9f2e49931b90083478a9270"
+SRC_URI[sha256sum] = "a187c4d88a2e399f3d911acfc1730e10312433ace98e72c17fa17c9821eb7ce0"
 
 BACKEND = "${@base_contains('DISTRO_FEATURES', 'x11', 'X11', \
                     base_contains('DISTRO_FEATURES', 'wayland', 'Wayland', 'FB', d), d)}"
Signature · 1 line
1.9.1
#0 lore raw

PATCH v2 1/2 fsl-gpu-sdk: Add support for i.MX 6SoloLite

Build using OpenVG only due to GPU limitations.

---
 recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb +14 -2
index 459ad34..2903f74 100644
@@ -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
Signature · 1 line
1.9.1