[meta-freescale] [meta-fsl-arm][PATCH] qtbase: Include Sololite changes.
Neena Busireddy
neena.busireddy at freescale.com
Tue Sep 9 19:06:45 PDT 2014
Sololite x11 backend only supports mesa software rendering GL but
does not support GLES. Sololite non-x11 backends (fb, wayland
and dfb) do not support GL and GLES.
Change qtbase recipe to support sololite qt for all backends.
Signed-off-by: Neena Busireddy <neena.busireddy at freescale.com>
---
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
index 20fc15f..64966c2 100644
--- a/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
+++ b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
@@ -6,12 +6,21 @@ SRC_URI += "file://Force_egl_visual_ID_33.patch"
HAS_X11 = "${@base_contains('DISTRO_FEATURES', 'x11', 1, 0, d)}"
+IS_MX6SL = "0"
+IS_MX6SL_mx6sl = "1"
+
PACKAGECONFIG_GL_mx5 = "gles2"
PACKAGECONFIG_append_mx5 = " tslib icu examples"
-PACKAGECONFIG_GL_mx6 = "gles2"
+PACKAGECONFIG_GL_mx6q = "gles2"
+PACKAGECONFIG_GL_mx6dl = "gles2"
+PACKAGECONFIG_GL_mx6sl = "${@base_contains('DISTRO_FEATURES', 'x11', \
+ ' gl', '', d)}"
PACKAGECONFIG_append_mx6 = " tslib icu examples"
-QT_CONFIG_FLAGS_append_mx6 = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
+QT_CONFIG_FLAGS_append_mx6q = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
+QT_CONFIG_FLAGS_append_mx6dl = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
+QT_CONFIG_FLAGS_append_mx6sl = "${@base_contains('DISTRO_FEATURES', 'x11', \
+ ' -no-eglfs', ' -no-opengl -linuxfb -no-icu -no-eglfs', d)}"
do_configure_prepend_mx5() {
sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
@@ -36,10 +45,17 @@ do_configure_prepend_mx6() {
# adapt qmake.conf to our needs
sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
if test ${HAS_X11} -eq 0; then
+ if test ${IS_MX6SL} -eq 0; then
+
cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
EGLFS_PLATFORM_HOOKS_SOURCES = \$\$PWD/qeglfshooks_imx6.cpp
IMX6_CFLAGS = -DLINUX=1 -DEGL_API_FB=1
EOF
+ else
+cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+IMX6_CFLAGS = -DLINUX=1
+EOF
+fi
# copy the hook in the mkspecs directory OE is using
cp ${S}/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp ${S}/mkspecs/linux-oe-g++/
else
--
1.7.9.5
More information about the meta-freescale
mailing list