Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 92BADE00D44; Wed, 26 Oct 2016 10:44:54 -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=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.213.66 listed in dnsbl.sorbs.net] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * 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] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 A4734E00D33 for ; Wed, 26 Oct 2016 10:44:53 -0700 (PDT) Received: by mail-vk0-f66.google.com with SMTP id h7so371706vkf.0 for ; Wed, 26 Oct 2016 10:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :organization; bh=0V+gHLj41TVKu2mKsXuwYDO+t60ICnUWdwI8UE51ypk=; b=t9b/+70yxn0P0vaKeEFx6EiNvQfcLF2tKy4+E3tPuYbBkpxIj85aOVNqdwqa6qI9fU rPZNhpA68pUyvwh2btqrztNaZBnGmUCJrz/n6hzEeoxTME+NQZSz1TyGyW0Cr2OSongB nKEAEUx3O2EUqOHS570wcot3rICrEnjcuWVt51XgZX5IoST4MaI8/avrlCHc8RPn76xy SA2T/0MIVqrH7sZ1gMAVPrauKQfJQRcR1fSpqHfmuupt2qZwlIu/C2dbbNk+v01JTMei /XIq3R4gZ8Kc6y5fim5RuzT++MesFFtERGhdT6DCg1/reiomLqC5SvPSVi81nBqDam6z 4AOw== 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=0V+gHLj41TVKu2mKsXuwYDO+t60ICnUWdwI8UE51ypk=; b=TCOerQ9bYaHDduLCoza4slAAAx+a3WmJZOUQ6m5QcB1Os2GrfWwtogmbMNMB0hMUfJ UA3AseXZHX4jNyAe0sbE8s9xSg7Mm16WYe6t2hr8FVeD5rZOICKnheppul5ggE4Ji+qw 3csGX2Bf15FfK1r61BeXgbt5elfJv4WVhpvJ7Wu5+1dAoB9nlYnEazgZkIgc5zF8uc6Q 1Ue0r9dVubhBMOAIMWzUZ5/QayFBRZWKO0vDXt5PLQLu4WWmxy6cwXZSPydpSWhqsvJN KoBM5QDnEUSuZVe7bzRFUitwea4SSbK8eDI0q+4lSGBb4iFR4t0JUYoznBMBwso9qSQx b5Kw== X-Gm-Message-State: ABUngvds8YQhq+eXk0ewkCjzu4uOXfTof/SVXjBcEY2y0WP6lYYzZn6WZGdYLTvfTEetLw== X-Received: by 10.31.85.4 with SMTP id j4mr2172964vkb.8.1477503892639; Wed, 26 Oct 2016 10:44:52 -0700 (PDT) Received: from monster.lab.ossystems.com.br ([187.23.155.148]) by smtp.gmail.com with ESMTPSA id u18sm791302uau.0.2016.10.26.10.44.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Oct 2016 10:44:51 -0700 (PDT) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Wed, 26 Oct 2016 15:44:22 -0200 Message-Id: <1477503863-2109-5-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1477503863-2109-1-git-send-email-fabio.berton@ossystems.com.br> References: <1477503863-2109-1-git-send-email-fabio.berton@ossystems.com.br> Organization: O.S. Systems Software LTDA. Subject: [distro][PATCH 5/6] imx-gpu-sdk: Use the new i.MX feature 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: Wed, 26 Oct 2016 17:44:54 -0000 Configure DEPENDS variable using new i.MX overrides and install packages based on existence of 2D and/or 3D hardware. Change do_compile and do_install tasks to run build.sh script based on existence of 2D and/or 3D hardware. Signed-off-by: Fabio Berton --- recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb b/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb index 6fdb105..6b80baa 100644 --- a/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb +++ b/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb @@ -3,10 +3,8 @@ DESCRIPTION = "Set of sample applications for i.MX GPU" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=d4f548f93b5fe0ee2bc86758c344412d" DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS} assimp devil gstreamer1.0 gstreamer1.0-plugins-base" -DEPENDS_append_mx6q = " virtual/libgles2" -DEPENDS_append_mx6dl = " virtual/libgles2" -DEPENDS_append_mx6sx = " virtual/libgles2" -DEPENDS_append_mx6sl = " virtual/libopenvg" +DEPENDS_append_imxgpu2d = " virtual/libopenvg" +DEPENDS_append_imxgpu3d = " virtual/libgles2" X11_DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xrandr', '', d)}" WL_DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}" @@ -28,14 +26,14 @@ SRC_URI += "file://Add-missing-cmath-include.patch" BACKEND = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'X11', \ bb.utils.contains('DISTRO_FEATURES', 'wayland', 'Wayland', 'FB', d), d)}" -IS_MX6SL = "0" -IS_MX6SL_mx6sl = "1" +IMXGPU = "2d" +IMXGPU_imxgpu3d = "3d" do_compile () { export FSL_GRAPHICS_SDK=${S} export FSL_PLATFORM_NAME=Yocto export ROOTFS=${STAGING_DIR_HOST} - if [ "${IS_MX6SL}" = "0" ]; then + if [ "${IMXGPU}" = "3d" ]; then ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} else ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} @@ -46,7 +44,7 @@ do_install () { export FSL_GRAPHICS_SDK=${S} export FSL_PLATFORM_NAME=Yocto install -d "${D}/opt/${PN}" - if [ "${IS_MX6SL}" = "0" ]; then + if [ "${IMXGPU}" = "3d" ]; then ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install else ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install -- 2.1.4