Skip to contentSkip to conversation

fsl-gpu-sdk: Upgrade to 2.2.1 version

PATCH In review Neena Busireddy 2 participants 3 messages Jan 4, 2016 – Jan 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsl-gpu-sdk: Upgrade to 2.2.1 version

From: Neena Busireddy <[email protected]>

This version is released with 3.14.52-1.1.0_ga release

- Supports: OpenGL ES2, OpenGL ES3, OpenVG and experimental G2D support
- Added recipe for cross-platform image library (devil) as fsl-gpu-sdk is dependent on devil
- Do not install VPU packages on processors with no VPU(i.MX6SX)

---
 .../devil/devil/Fix-GCC-5.2-erros.patch            |  21 ++
 recipes-graphics/devil/devil/M4Patch.patch         |  18 ++
 recipes-graphics/devil/devil/il_manip_c.patch      | 211 ++++++++++++++++++++
 recipes-graphics/devil/devil/il_manip_h.patch      | 220 +++++++++++++++++++++
 recipes-graphics/devil/devil_1.7.8.bb              |  31 +++
 ...001-update-gstreamer1.0-include-directory.patch |  22 +++
 .../{fsl-gpu-sdk_2.1.bb => fsl-gpu-sdk_2.2.1.bb}   |  21 +-
 7 files changed, 538 insertions(+), 6 deletions(-)
 create mode 100644 recipes-graphics/devil/devil/Fix-GCC-5.2-erros.patch
 create mode 100644 recipes-graphics/devil/devil/M4Patch.patch
 create mode 100644 recipes-graphics/devil/devil/il_manip_c.patch
 create mode 100644 recipes-graphics/devil/devil/il_manip_h.patch
 create mode 100644 recipes-graphics/devil/devil_1.7.8.bb
 create 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.1.bb => fsl-gpu-sdk_2.2.1.bb} (66%)
recipes-graphics/devil/devil/Fix-GCC-5.2-erros.patch new file +21 -0
new file mode 100644
index 0000000..b99dfd9
@@ -0,0 +1,21 @@
+diff -Naur devil-1.7.8_org/include/IL/il.h devil-1.7.8/include/IL/il.h
+--- devil-1.7.8_org/include/IL/il.h	2015-12-16 14:31:33.105076974 -0600
++++ devil-1.7.8/include/IL/il.h	2015-12-16 14:33:47.000000000 -0600
+@@ -63,13 +63,13 @@
+ 	#endif
+ #endif
+ 
+-#ifdef RESTRICT_KEYWORD
+-#define RESTRICT restrict
+-#define CONST_RESTRICT const restrict
++#if defined(RESTRICT_KEYWORD) && !defined(__cplusplus)
++#define RESTRICT __restrict__
++#define CONST_RESTRICT const __restrict__
+ #else
+ #define RESTRICT
+ #define CONST_RESTRICT const
+-#endif
++#endif // RESTRICT keyword and not C++
+ 
+ #include <stdio.h>
+ 
recipes-graphics/devil/devil/M4Patch.patch new file +18 -0
new file mode 100644
index 0000000..ad67adf
@@ -0,0 +1,18 @@
+--- devil-1.7.8/m4/devil-definitions.m4
++++ devil-1.7.8/m4/devil-definitions.m4
+@@ -244,12 +244,12 @@
+ 
+ AC_DEFUN([SETTLE_PNG],
+          [DEVIL_IL_LIB([png.h],
+-                       [png12]) 
+-          AS_IF([test "x$have_png12" = "xno"],
++                       [png]) 
++          AS_IF([test "x$have_png" = "xno"],
+                 [DEVIL_IL_LIB([png.h],
+                               [png]) 
+                  lib_test_result="$have_png"],
+-                [lib_test_result="$have_png12"]) 
++                [lib_test_result="$have_png"]) 
+           AS_IF([test "x$lib_test_result" = "xyes"],
+                 [MAYBE_OPTIONAL_DEPENDENCY([IL],
+                                            [libpng]) ]) ]) 
recipes-graphics/devil/devil/il_manip_c.patch new file +211 -0

211 lines not on this page · raw message

recipes-graphics/devil/devil/il_manip_h.patch new file +220 -0

220 lines not on this page · raw message

recipes-graphics/devil/devil_1.7.8.bb new file +31 -0
new file mode 100644
index 0000000..eccadb2
@@ -0,0 +1,31 @@
+DESCRIPTION = "A full featured cross-platform image library"
+SECTION = "libs"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
+PR = "r0"
+
+DEPENDS = "libpng jpeg"
+RDEPENDS_${PN} += "libpng "
+
+SRC_URI = "http://sourceforge.net/projects/openil/files/DevIL/1.7.8/DevIL-${PV}.zip \
+           file://il_manip_c.patch \
+           file://il_manip_h.patch \
+           file://M4Patch.patch \
+           file://Fix-GCC-5.2-erros.patch"
+SRC_URI[md5sum] = "312853ef9c85ad7b2100f9cd068b2a5b"
+SRC_URI[sha256sum] = "4368d83b3016b5eafe8984f0d7f86ccee76b8993cf900d3a8cbd4901b52f64eb"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+S = "${WORKDIR}/devil-${PV}"
+
+TARGET_CFLAGS += "-Dpng_set_gray_1_2_4_to_8=png_set_expand_gray_1_2_4_to_8"
+
+inherit autotools
+
+do_compile() {
+	oe_runmake	
+}
+
+do_install() {
+	oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} INCLUDEDIR=${includedir}
+}
recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk/0001-update-gstreamer1.0-include-directory.patch new file +22 -0
new file mode 100644
index 0000000..d5edaa6
@@ -0,0 +1,22 @@
+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.1.bb renamed from recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.1.bb +15 -6
similarity index 66%
rename from recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.1.bb
rename to recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb
index 01d2103..459ad34 100644
@@ -1,8 +1,8 @@
 SUMMARY = "Freescale GPU SDK Samples"
 DESCRIPTION = "Set of sample applications for Freescale GPU"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://COPYING;md5=01ba08a2b77c3a0a9d0ab5d4d83fed64"
-DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS}"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3880bb9c943b135a30fad5e8aabd3ee9"
+DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS} devil gstreamer1.0 gstreamer1.0-plugins-base"
 DEPENDS_append_mx6q = " virtual/libgles2"
 DEPENDS_append_mx6dl = " virtual/libgles2"
 DEPENDS_append_mx6sx = " virtual/libgles2"
@@ -17,13 +17,18 @@ RPROVIDES_${PN} = "vivante-gpu-sdk"
 RREPLACES_${PN} = "vivante-gpu-sdk"
 RCONFLICTS_${PN} = "vivante-gpu-sdk"
 
-SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
+SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
+           file://0001-update-gstreamer1.0-include-directory.patch"
 
-SRC_URI[md5sum] = "8f656b8a3a7b7390f434ec1cebf66334"
-SRC_URI[sha256sum] = "eccfd6f412c256e92e61d811cbe607e77bdfd13e268f4840b819e32dcd92921e"
+SRC_URI[md5sum] = "92575bc028cea9ac7a3c2a05f7848926"
+SRC_URI[sha256sum] = "c57103cbfaf74abec795130c7ea6ce9801f8cfd5c08832498d0a1ec21f178ebc"
 
 BACKEND = "${@base_contains('DISTRO_FEATURES', 'x11', 'X11', \
                     base_contains('DISTRO_FEATURES', 'wayland', 'Wayland', 'FB', d), d)}"
+
+HAS_VPU = "1"
+HAS_VPU_mx6sx = "0"
+
 do_compile () {
     export FSL_GRAPHICS_SDK=${S}
     export FSL_PLATFORM_NAME=Yocto
@@ -37,12 +42,16 @@ do_install () {
     install -d "${D}/opt/${PN}"
     ./build.sh -f  GNUmakefile_Yocto EGLBackend=${BACKEND} install 
     cp -r bin/* "${D}/opt/${PN}"
+    if [ "${HAS_VPU}" = "0" ]; then
+        rm -rf ${D}/opt/${PN}/GLES2/DirectMultiSamplingVideoYUV
+        rm -rf ${D}/opt/${PN}/GLES3/DirectMultiSamplingVideoYUV
+    fi
     rm -rf ${D}/opt/${PN}/GLES2/S05_PrecompiledShader
     rm -rf ${D}/opt/${PN}/GLES3/S05_PrecompiledShader
 }
 
 FILES_${PN} += "/opt/${PN}"
 FILES_${PN}-dbg += "/opt/${PN}/*/*/.debug /usr/src/debug"
-INSANE_SKIP_${PN} += "rpaths"
+INSANE_SKIP_${PN} += "already-stripped rpaths"
 
 COMPATIBLE_MACHINE = "(mx6)"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 11 lines · Neena Busireddy

From: Neena Busireddy <[email protected]>

This version is released with 3.14.52-1.1.0_ga release

- Supports: OpenGL ES2, OpenGL ES3, OpenVG and experimental G2D support
- Added recipe for cross-platform image library (devil) as fsl-gpu-sdk is dependent on devil
- Do not install VPU packages on processors with no VPU(i.MX6SX)

Please split 'devil' out of this; this should be added as another commit.

While doing that, please also do:

commit 3677e3fe977ae9c1264ab97dadaddd3ec9904c08

Author: Otavio Salvador <[email protected]>
Date:   Mon Jan 18 18:09:52 2016 -0200

devil: Fix missing dependencies

The libpng and xz (which builds liblzma) dependencies were being auto-detected causing a non-reproducible build if those libraries are available; to fix it, add those as dependencies and stop this inconsistency.

Fixes:

,----
| WARNING: QA Issue: devil rdepends on tiff, but it isn't a build
| dependency? [build-deps]
| WARNING: QA Issue: devil rdepends on liblzma, but it isn't a build
| dependency? [build-deps]
`----

(quoted diff) +0 -0

b/recipes-graphics/devil/devil_1.7.8.bb
index eccadb2..ead6b76 100644

recipes-graphics/devil/devil_1.7.8.bb +0 -0
@@ -2,10 +2,8 @@ DESCRIPTION = "A full featured cross-platform image library"
 SECTION = "libs"
 LICENSE = "LGPL-2.1"
 LIC_FILES_CHKSUM =

"file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780" -PR = "r0"

-DEPENDS = "libpng jpeg"
-RDEPENDS_${PN} += "libpng "
+DEPENDS = "libpng jpeg tiff xz"

SRC_URI = "http://sourceforge.net/projects/openil/files/DevIL/1.7.8/DevIL-${PV}.zip

\
            file://il_manip_c.patch \

And also check if do_compile and do_install is really need; I think you should use 'autotools-brokensep' class instead.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw
Quoted 4 lines · Neena Busireddy

From: Neena Busireddy <[email protected]>

This version is released with 3.14.52-1.1.0_ga release

Quoted 8 lines

- Supports: OpenGL ES2, OpenGL ES3, OpenVG and experimental G2D support
- Added recipe for cross-platform image library (devil) as fsl-gpu-sdk is dependent on devil
- Do not install VPU packages on processors with no VPU(i.MX6SX)

Please split 'devil' out of this; this should be added as another commit.

While doing that, please also do:

commit 3677e3fe977ae9c1264ab97dadaddd3ec9904c08

Author: Otavio Salvador <[email protected]>
Date:   Mon Jan 18 18:09:52 2016 -0200

devil: Fix missing dependencies

The libpng and xz (which builds liblzma) dependencies were being auto-detected causing a non-reproducible build if those libraries are available; to fix it, add those as dependencies and stop this inconsistency.

Fixes:

,----
| WARNING: QA Issue: devil rdepends on tiff, but it isn't a build
| dependency? [build-deps]
| WARNING: QA Issue: devil rdepends on liblzma, but it isn't a build
| dependency? [build-deps]
`----

(quoted diff) +0 -0

b/recipes-graphics/devil/devil_1.7.8.bb
index eccadb2..ead6b76 100644

recipes-graphics/devil/devil_1.7.8.bb +0 -0
@@ -2,10 +2,8 @@ DESCRIPTION = "A full featured cross-platform image library"
 SECTION = "libs"
 LICENSE = "LGPL-2.1"
 LIC_FILES_CHKSUM =

"file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780" -PR = "r0"

-DEPENDS = "libpng jpeg"
-RDEPENDS_${PN} += "libpng "
+DEPENDS = "libpng jpeg tiff xz"

SRC_URI = "http://sourceforge.net/projects/openil/files/DevIL/1.7.8/DevIL-${PV}.zip

\
            file://il_manip_c.patch \

And also check if do_compile and do_install is really need; I think you should use 'autotools-brokensep' class instead.

Agreed; Will rework the patch and send again.

Thanks,
Neena