Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D1BC2E00E92; Thu, 1 Sep 2016 15:22:10 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham 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.213.66 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-vk0-f66.google.com (mail-vk0-f66.google.com [209.85.213.66]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id BECF9E00DF2 for ; Thu, 1 Sep 2016 15:21:55 -0700 (PDT) Received: by mail-vk0-f66.google.com with SMTP id b77so317062vke.2 for ; Thu, 01 Sep 2016 15:21:55 -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:organization; bh=wiX08p/RuGfNE6zTBMVeOvKAXAPXlBOeyVKfSjX8CAo=; b=SOSYY5Hf5+vhsFBslW0e514Kw8dWBiiSsI9t0YGG/KpJHFA3PL2b93MTar6PFHRPOh IlLtqq6SxttsK+s2u0JV95vO6Z19BpAXo+dvSjrwHEl/yV/WFRV6XsZi/o28uLHA7yZI WfMegiGU1wKzKaN2GxWtsLFlWqNYvovgFt1TfXtqQo+mIiD758SBh8t8yh8lp2WvRVIl u2Cn/W+osuQzADTQYfWdrPY7N5C/4vHKqEzI5d/G+bSxdaVssYzyLnOjRrdg3n+i5u+v BapNoVwYAYoWWCvXuV/0RPxH9DRBZbOYQ+XOa5JxzuMRnD4zbbH4vr1gXFM7aYkDBkKm LeNg== X-Gm-Message-State: AE9vXwO8rmG7h1gjDpejWgefOHAqYjtzhLZ5QuJos50w+sDRrUioduTWO402qACfjtda8A== X-Received: by 10.31.231.130 with SMTP id e124mr10980055vkh.11.1472768514429; Thu, 01 Sep 2016 15:21:54 -0700 (PDT) Received: from localhost ([179.105.254.222]) by smtp.gmail.com with ESMTPSA id 21sm1222324uaj.17.2016.09.01.15.21.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Sep 2016 15:21:53 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Thu, 01 Sep 2016 19:21:48 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Thu, 1 Sep 2016 19:20:38 -0300 Message-Id: <20160901222043.18942-12-otavio@ossystems.com.br> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160901222043.18942-1-otavio@ossystems.com.br> References: <20160901222043.18942-1-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador , prabhu.sundararaj@nxp.com, white.weng@nxp.com Subject: [meta-fsl-arm PATCH v2 11/16] imx-gpu-viv: 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: Thu, 01 Sep 2016 22:22:10 -0000 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 v2: None recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc index e99c4a1..8536461 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc @@ -13,9 +13,7 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxd libpng" EXTRA_PROVIDES = "" -EXTRA_PROVIDES_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2" -EXTRA_PROVIDES_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2" -EXTRA_PROVIDES_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2" +EXTRA_PROVIDES_imxgpu3d = " virtual/libgl virtual/libgles1 virtual/libgles2" PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}" PE = "1" @@ -94,8 +92,8 @@ python __anonymous() { d.appendVar("RCONFLICTS_" + fullp, pkgs) } -IS_MX6SL = "0" -IS_MX6SL_mx6sl = "1" +IMXGPU_imxgpu3d = "3d" +IMXGPU_imxgpu2d = "2d" do_install () { install -d ${D}${libdir} @@ -182,8 +180,9 @@ do_install () { find ${D}${libdir} -name "*.$backend.so" -exec rm '{}' ';' done - # FIXME: MX6SL does not have 3D support; hack it for now - if [ "${IS_MX6SL}" = "1" ]; then + # FIXME: For 2D only GPU, we need to remove some content which is + # 3D specific. + if [ "${IMXGPU}" = "2d" ]; then rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \ \ ${D}${libdir}/libGL* ${D}${includedir}/GL* \ -- 2.9.3