Skip to contentSkip to conversation

qtbase: Update patch for upgrade to Qt 5.8

PATCH New Tom Hochstein 1 participant 2 messages Jun 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 qtbase: Update patch for upgrade to Qt 5.8

---
 .../qt5-layer/recipes-qt/qt5/qtbase/0014-Add-IMX-GPU-support.patch | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0014-Add-IMX-GPU-support.patch +4 -3
index beeb92c..e86d9ed 100644
@@ -1,8 +1,8 @@
 Index: git/mkspecs/linux-oe-g++/qmake.conf
 ===================================================================
---- git.orig/mkspecs/linux-oe-g++/qmake.conf	2016-12-14 16:51:48.468955533 -0600
-+++ git/mkspecs/linux-oe-g++/qmake.conf	2016-12-14 17:03:17.000000000 -0600
-@@ -39,4 +39,8 @@
+--- git.orig/mkspecs/linux-oe-g++/qmake.conf	2017-06-26 10:20:57.139653321 -0500
++++ git/mkspecs/linux-oe-g++/qmake.conf	2017-06-26 10:30:12.000000000 -0500
+@@ -39,5 +39,9 @@
  
  include(../oe-device-extra.pri)
  
@@ -10,4 +10,5 @@ Index: git/mkspecs/linux-oe-g++/qmake.conf
 +QMAKE_LIBS_OPENGL_ES2 += -lEGL -lGLESv2
 +QMAKE_LIBS_OPENVG     += -lEGL -lOpenVG
 +
+ load(device_config)
  load(qt_config)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 qtbase: Fix build error when using EGL

A build error was occurring due to missing EGL configuration. Fixed by adding the necessary ties to the EGL pkg-config.

---
 ...-build-error-when-egl-headers-need-platfo.patch | 32 ++++++++++++++++++++++
 .../qt5-layer/recipes-qt/qt5/qtbase_%.bbappend     |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0017-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch
dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0017-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch new file +32 -0
new file mode 100644
index 0000000..7e625fd
@@ -0,0 +1,32 @@
+From 3f9703fecd670b36030e1093466f6d11b370c19f Mon Sep 17 00:00:00 2001
+From: Yuqing Zhu <[email protected]>
+Date: Mon, 27 Mar 2017 15:33:35 +0800
+Subject: [PATCH] egl.prf: Fix build error when egl headers need platform
+ definition
+
+Gain the value through pkg-config and pass it through QMAKE_CFLAGS_EGL.
+
+Upstream-Status: Pending
+
+Signed-off-by: Yuqing Zhu <[email protected]>
+---
+ mkspecs/features/egl.prf | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/mkspecs/features/egl.prf b/mkspecs/features/egl.prf
+index 9fa0c9e..85d5852 100644
+--- a/mkspecs/features/egl.prf
++++ b/mkspecs/features/egl.prf
+@@ -1,3 +1,9 @@
++# egl headers need a definition
++PKG_CONFIG = $$pkgConfigExecutable()
++PKGCONFIG_CFLAGS = $$system($$PKG_CONFIG --cflags egl)
++PKGCONFIG_CFLAGS = $$find(PKGCONFIG_CFLAGS, ^-D.*)
++QMAKE_CFLAGS_EGL = $$PKGCONFIG_CFLAGS
++
+ INCLUDEPATH += $$QMAKE_INCDIR_EGL
+ LIBS_PRIVATE += $$QMAKE_LIBS_EGL
+ QMAKE_CFLAGS += $$QMAKE_CFLAGS_EGL
+-- 
+1.9.1
+
dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +1 -0
index ff120b7..a78eea2 100644
@@ -12,6 +12,7 @@ SRC_URI_append_imxgpu3d = " \
                                                    'file://0015-Add-eglfs-to-IMX-GPU.patch \
                                                     file://0016-Configure-eglfs-with-egl-pkg-config.patch', d)} \
 "
+SRC_URI_append_imxgpu2d = "file://0017-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch"
 
 PACKAGECONFIG_GL_imxpxp   = "gles2"
 PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}"
Signature · 1 line
1.9.1