[Buildroot] [PATCH 2/5] package/qt5: Use any libgbm provider
Einar Jon Gunnarsson
tolvupostur at gmail.com
Fri Nov 30 12:01:20 UTC 2018
libgbm is not limited to mesa3d
Signed-off-by: Einar Jon Gunnarsson <tolvupostur at gmail.com>
-------------------
Only tested for libgbm-ti-sgx - not sunxi_mali.
I have not been able to test on actual hardware, but I do get qt to build with gbm
*** ./output_ti/build/qt5base-5.11.2/config.summary 2018-11-08 13:18:20.553522890 +0100
--- ./output_ti/build/qt5base-5.11.2-nogbm/config.summary 2018-11-08 11:55:04.709670885 +0100
***************
*** 90,96 ****
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... no
! EGLFS GBM ............................ yes
EGLFS VSP2 ........................... no
EGLFS Mali ........................... no
EGLFS Raspberry Pi ................... no
--- 90,96 ----
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... no
! EGLFS GBM ............................ no
EGLFS VSP2 ........................... no
EGLFS Mali ........................... no
EGLFS Raspberry Pi ................... no
Signed-off-by: Einar Jon Gunnarsson <tolvupostur at gmail.com>
---
package/qt5/qt5base/qt5base.mk | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index 2b6fd39..4cd6ac0 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -42,10 +42,10 @@ else
QT5BASE_CONFIGURE_OPTS += -no-kms
endif
-# Uses libgbm from mesa3d
-ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
+# Uses libgbm from mesa3d,ti-sgx-libgbm or sunxi_mali
+ifeq ($(BR2_PACKAGE_HAS_LIBGBM),y)
QT5BASE_CONFIGURE_OPTS += -gbm
-QT5BASE_DEPENDENCIES += mesa3d
+QT5BASE_DEPENDENCIES += $(call qstrip,$(BR2_PACKAGE_PROVIDES_LIBGBM))
else
QT5BASE_CONFIGURE_OPTS += -no-gbm
endif
--
2.7.4
More information about the buildroot
mailing list