qt5base: Enable KMS and GBM if Mesa 3D provides EGL
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Wed, 1 Jun 2016 03:38:09 +0000 (12:38 +0900)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 5 Jul 2016 10:43:57 +0000 (12:43 +0200)
Signed-off-by: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qt5/qt5base/qt5base.mk

index 783cf3c75d088f770374331af4c773d62235a971..bf541b0f8e39895e1fb1b91e28bcee695b268c11 100644 (file)
@@ -20,7 +20,6 @@ QT5BASE_INSTALL_STAGING = YES
 #    want to use the one packaged in Buildroot
 QT5BASE_CONFIGURE_OPTS += \
        -optimized-qmake \
-       -no-kms \
        -no-cups \
        -no-nis \
        -no-iconv \
@@ -29,6 +28,14 @@ QT5BASE_CONFIGURE_OPTS += \
        -no-pch \
        -shared
 
+# Uses libgbm from mesa3d
+ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
+QT5BASE_CONFIGURE_OPTS += -kms -gbm
+QT5BASE_DEPENDENCIES += mesa3d
+else
+QT5BASE_CONFIGURE_OPTS += -no-kms
+endif
+
 ifeq ($(BR2_ENABLE_DEBUG),y)
 QT5BASE_CONFIGURE_OPTS += -debug
 else