Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 795C1E00FA0; Tue, 6 Sep 2016 10:59:31 -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: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.217.193 listed in list.dnswl.org] * 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.217.193 listed in dnsbl.sorbs.net] Received: from mail-ua0-f193.google.com (mail-ua0-f193.google.com [209.85.217.193]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 282FEE00FBB for ; Tue, 6 Sep 2016 10:59:20 -0700 (PDT) Received: by mail-ua0-f193.google.com with SMTP id 35so11058443uaj.3 for ; Tue, 06 Sep 2016 10:59:20 -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=tm23Jpf4qw2PXc5kNyaDTDy/DK9Gvtbb0eOySM0C+DM=; b=OjOFwTEi8PfBzwGHnypd3ZvMD6mJTwP5wdP6XaWycNTjvgcY6Lz6iK5EM8M2pF0tAZ Eq8ziqlXR0fc230ftEldTNYPOe1BTJNEOatmCdeDAQ3CE+ljYxsONNMnpM4id61rZgYv TYN0lzQnZ811hM97hhqKzejRQGjan5e3Xxq0qqPA/a8lvaDaQOsc2P8d5Jv1ayR4z02J vl5owyrHBVniRHtgwnRKoZl3bOCPB1g/AaEtWJRKsMAcAZi88AThEq9rEWRC+M831OEI cv1atLFPrc1Vi00Z0+pQxsZ/Q+tbSJ5Pke7Q7wtnblApm4mPWM6g2NpV8UCFRMZ6VOt1 vlYQ== X-Gm-Message-State: AE9vXwPbd0Zv6DIOeD6wFEbqhyEqwILquDzb0Pk9S76oh1dlUI0G+6axuwgA+029BgWW6A== X-Received: by 10.176.80.101 with SMTP id z34mr25997027uaz.103.1473184759926; Tue, 06 Sep 2016 10:59:19 -0700 (PDT) Received: from localhost ([179.105.254.222]) by smtp.gmail.com with ESMTPSA id x204sm5281590vkx.22.2016.09.06.10.59.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Sep 2016 10:59:19 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Tue, 06 Sep 2016 14:59:14 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Tue, 6 Sep 2016 14:58:03 -0300 Message-Id: <20160906175809.30139-12-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> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador , prabhu.sundararaj@nxp.com, white.weng@nxp.com Subject: [meta-fsl-arm PATCH v3 11/17] 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: Tue, 06 Sep 2016 17:59:31 -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 v3: None 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