Comments inline Best Regards, Prabhu
-----Original Message----- From: Otavio Salvador [mailto:[email protected]] Sent: Monday, August 29, 2016 12:04 PM To: meta-freescale Mailing List <[email protected]> Cc: Neena Busireddy <[email protected]>; Daiane Angolini <[email protected]>; Prabhu Sundararaj <[email protected]>; Tom Hochstein <[email protected]>; Zhenhua Luo <[email protected]>; White Weng <[email protected]>; Lauren Post <[email protected]>; Otavio Salvador <[email protected]> Subject: [FEATURE meta-fsl-arm PATCH 08/15] qtbase: Refactor code to use the new overrides The recipe has been reworked to use the 'imxgpu2d' and 'imxgpu3d' feature overrides. While on that, the i.MX6SL specific code has been reworked to used when only 2D GPU support is available. Signed-off-by: Otavio Salvador <[email protected]> --- qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend index d336c0f..fd7cc39 100644 --- a/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +++ b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend @@ -1,25 +1,22 @@ # Copyright (C) 2013 Eric Bénard - Eukréa Electromatique +# Copyright (C) 2016 O.S. Systems Software LTDA. HAS_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 1, 0, d)}" -IS_MX6SL = "0" -IS_MX6SL_mx6sl = "1" +IMXGPU_imxgpu3d = "3d" +IMXGPU_imxgpu2d = "2d" -PACKAGECONFIG_GL_mx6q = "gles2" -PACKAGECONFIG_GL_mx6dl = "gles2" -PACKAGECONFIG_GL_mx6sx = "gles2" -PACKAGECONFIG_GL_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}" -QT_CONFIG_FLAGS_append_mx6q = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" -QT_CONFIG_FLAGS_append_mx6dl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" -QT_CONFIG_FLAGS_append_mx6sx = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" -QT_CONFIG_FLAGS_append_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', \ +PACKAGECONFIG_GL_imxgpu3d = "gles2" Prabhu: Some SOCs like i.MX6QP, support gles3. Now QT also supports gles3. Need better way to configure this while baking. +PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}" +QT_CONFIG_FLAGS_append_imxgpu3d = "${@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)}" 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 + if [ "${IMXGPU}" = "3d"; then cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF IMX6_CFLAGS = -DLINUX=1 -DEGL_API_FB=1 -- 2.9.3 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
