]> code.ossystems Code Review - meta-freescale.git/commitdiff
qtbase: Fix QT_CONFIG_FLAGS for non-mainline-bsp
authorTom Hochstein <tom.hochstein@nxp.com>
Thu, 11 Oct 2018 17:17:08 +0000 (12:17 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 6 Nov 2018 12:16:34 +0000 (10:16 -0200)
- Enable eglfs only for 3D parts and framebuffer backend
- Disable opengl and enable linuxfb for 2D parts with no 3D

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend

index d6f3b1099cc8d36d52f78752c5cd6059fc7d5fa5..7d9b775b3220956234dfb28266e60fc59d2bb611 100644 (file)
@@ -22,10 +22,13 @@ PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl
 PACKAGECONFIG_GL_imxgpu3d = "gles2"
 PACKAGECONFIG_GL_append_use-mainline-bsp = " gbm kms"
 
-QT_CONFIG_FLAGS_APPEND = ""
-QT_CONFIG_FLAGS_APPEND_imxpxp = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '-no-eglfs', '-eglfs', d)}"
-QT_CONFIG_FLAGS_APPEND_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '-no-eglfs', '-no-opengl -linuxfb -no-eglfs', d)}"
-QT_CONFIG_FLAGS_APPEND_imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '-no-eglfs', '-eglfs', d)}"
+QT_CONFIG_FLAGS_APPEND          = ""
+QT_CONFIG_FLAGS_APPEND_imxpxp   = "-no-eglfs"
+QT_CONFIG_FLAGS_APPEND_imxgpu2d = "-no-eglfs -no-opengl -linuxfb"
+QT_CONFIG_FLAGS_APPEND_imxgpu3d = " \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11',     '-no-eglfs', \
+       bb.utils.contains('DISTRO_FEATURES', 'wayland', '-no-eglfs', \
+                                                       '-eglfs', d), d)}"
 QT_CONFIG_FLAGS_APPEND_use-mainline-bsp =  "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '-no-eglfs', '-eglfs', d)}"
 QT_CONFIG_FLAGS_append = " ${QT_CONFIG_FLAGS_APPEND}"