Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0975DE00FC6; Tue, 6 Sep 2016 10:59:18 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.217.194 listed in list.dnswl.org] * 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.217.194 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-ua0-f194.google.com (mail-ua0-f194.google.com [209.85.217.194]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 39BE3E00FB2 for ; Tue, 6 Sep 2016 10:59:03 -0700 (PDT) Received: by mail-ua0-f194.google.com with SMTP id u68so2400314uau.2 for ; Tue, 06 Sep 2016 10:59:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=9XASQwoD66nVX6EAXu9jubRf4VsV2JMqdSy6v1Qm+Ts=; b=Ry5YJV/k7D0blTvlhxLZ31jzKBwmGdyBD6ZiO/x99PeXbFkSV7o4abjTAK7pQ4iDEh 6Ep/2t6sWfEsY/c/W1WJn+LAlM/mRZy632UZ/JXlWut05/1ks1qLir+UvR/Syl26tMj8 /u6Y2npMrAkPgSzh9im3PIAllb74L7ta0Zhi5RFk71W8jaAfupLyiz3WzWPVF8/S7pfe agm2EfqHpeiL3imc7kbyXZIBgAv1cqLdmYEzmll5jfyHBpys6LfeUF+CCZ+p2YMszfHF oUII6iTBALgMoz0A39CIHFe7Lv2KoR0yf5dIkYt6BCpGblCWClAa8ci84RVgb8ktI+zB y5IA== X-Gm-Message-State: AE9vXwNFLzge1BKdjdOe2VbO+ehNuQuu+tKpoqtTkds7O0KVFRTrWhUHc4v3E2OGwY4UwQ== X-Received: by 10.176.3.68 with SMTP id 62mr26910663uat.73.1473184742824; Tue, 06 Sep 2016 10:59:02 -0700 (PDT) Received: from localhost ([179.105.254.222]) by smtp.gmail.com with ESMTPSA id u18sm5284190vke.0.2016.09.06.10.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Sep 2016 10:59:02 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Tue, 06 Sep 2016 14:58:57 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Tue, 6 Sep 2016 14:58:00 -0300 Message-Id: <20160906175809.30139-9-otavio@ossystems.com.br> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160906175809.30139-1-otavio@ossystems.com.br> References: <20160906175809.30139-1-otavio@ossystems.com.br> MIME-Version: 1.0 Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador , prabhu.sundararaj@nxp.com, white.weng@nxp.com Subject: [meta-fsl-arm PATCH v3 08/17] qtbase: Refactor code to use the new overrides X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 17:59:18 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Changes in v3: - Use a intermediate variable for append so values can change (need for PXP support later) Changes in v2: None qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend index d336c0f..3b99886 100644 --- a/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +++ b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend @@ -1,25 +1,24 @@ # 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', \ - ' -no-opengl -linuxfb -no-eglfs', d)}" +PACKAGECONFIG_GL_imxgpu3d = "gles2" +PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}" + +QT_CONFIG_FLAGS_APPEND = "" +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}" 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 <