[Buildroot] [PATCH 1/1] add qmake.conf fixup for sunxi-mali platforms

Giulio Benetti giulio.benetti at micronovasrl.com
Tue Nov 7 14:48:01 UTC 2017


Based on Gary Bisson patch qt5base: add qmake.conf fixup for i.MX platforms
Same happens for eglfs_mali.

As stated in QTBUG-61156 [1], since Qt5.9 all the Qt apps fail to start
on sunxi-mali platforms.

The reason is that the qmake.conf should apparently now specify which
eglfs backend to use.

Although this issue can be worked around by exporting a variable
(QT_QPA_EGLFS_INTEGRATION=eglfs_mali), this patch aims at providing
a more user-friendly approach by modifying qmake.conf when created.

[1]: https://bugreports.qt.io/browse/QTBUG-61156

Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
---
 package/qt5/qt5base/qt5base.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index b3f9c79..494031e 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -248,6 +248,14 @@ define QT5BASE_CONFIGURE_QMAKE_CONFIG
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST)$(BR2_PACKAGE_SUNXI_MALI_MAINLINE),yy)
+# use vivante backend
+define QT5BASE_CONFIGURE_QMAKE_CONFIG
+	echo "EGLFS_DEVICE_INTEGRATION = eglfs_mali" >> \
+		$(@D)/mkspecs/devices/linux-buildroot-g++/qmake.conf
+endef
+endif
+
 ifneq ($(QT5BASE_CONFIG_FILE),)
 define QT5BASE_CONFIGURE_CONFIG_FILE
 	cp $(QT5BASE_CONFIG_FILE) $(@D)/src/corelib/global/qconfig-buildroot.h
-- 
2.7.4




More information about the buildroot mailing list