qt5base: add support for sunxi-mali{,-mainline} eglfs backend
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Mon, 13 Nov 2017 18:41:55 +0000 (19:41 +0100)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 4 Apr 2018 21:35:22 +0000 (23:35 +0200)
Only one of the two can be selected (they are conflicting virtual
packages) so testing against a single 'y' is enough.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
[Arnout: add sunxi-mali and sunxi-mali-mainline in a single patch]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/qt5/qt5base/qt5base.mk

index a9a79ba08709a71d159c6d58ffc496c4fa8f0f46..e6307fb3fea584cb7e255aa7c299a0a0d3d26e87 100644 (file)
@@ -240,9 +240,14 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_PRINTSUPPORT) += Qt5PrintSupport
 
 QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_DBUS) += Qt5DBus
 
-ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST)$(BR2_PACKAGE_IMX_GPU_VIV),yy)
+ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
+ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
 # use vivante backend
 QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_viv
+else ifeq ($(BR2_PACKAGE_SUNXI_MALI)$(BR2_PACKAGE_SUNXI_MALI_MAINLINE),y)
+# use mali backend
+QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_mali
+endif
 endif
 
 ifneq ($(QT5BASE_CONFIG_FILE),)