Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A02F6E00D6C; Mon, 4 Jul 2016 13:10:27 -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.220.194 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E1A73E00D6C for ; Mon, 4 Jul 2016 13:10:12 -0700 (PDT) Received: by mail-qk0-f194.google.com with SMTP id n132so34187526qka.0 for ; Mon, 04 Jul 2016 13:10:12 -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=73B+jPPAB98zUnc1JqQDjn3JpjGdRX7eSQnROGtevbg=; b=Z9khmBrsZpa4OEqYP4vEwBNu6/fmlrjF7X+3Ytq9POW+CVVyYID/8ydplJTGtt+PkP ZKUUjsnxBYfMpDoRaihTjCTjQutdLKfPpgyMBt+YKarUp9JkWxlRU3HKL7pTwcCUEqjQ lxsWulyypRn/iVrha2qz/4cuJh1iwiBaebeHXnZUXx5kTjm54ZoK6H2K8HlZ1H1DyZPY oBAH7EPi0SB00CmXSExpdlfjb+1MHAQA2L89YnEV0HpMqS93XhTG1iYhm+71hjs8wGYk JvotTQx+8ORRaHTmDTh6cW087n29a1Z8j1TCbObBI65cWtif0MeyWDGPMiXL5yAXDHkf v1kg== X-Gm-Message-State: ALyK8tKL6nKcxqNLNrN9fE3XkLNWKSiGtHJ0HsUaD+8nTjFWAtCqZX5k2HNv13sQd5Lz7A== X-Received: by 10.55.17.137 with SMTP id 9mr18268910qkr.36.1467663012318; Mon, 04 Jul 2016 13:10:12 -0700 (PDT) Received: from localhost ([179.105.243.72]) by smtp.gmail.com with ESMTPSA id p83sm1375433qke.6.2016.07.04.13.10.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 13:10:11 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Mon, 04 Jul 2016 17:09:55 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Mon, 4 Jul 2016 17:07:16 -0300 Message-Id: <20160704200719.2861-15-otavio@ossystems.com.br> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160704200719.2861-1-otavio@ossystems.com.br> References: <20160704200719.2861-1-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [meta-fsl-arm krogoth PATCH 14/17] fsl-vivante-kernel-driver-handler.bbclass: Allow build for non-i.MX6 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: Mon, 04 Jul 2016 20:10:27 -0000 When building for non-i.MX6, we ought to assume the SoC does not has Vivante GPU at all, or the build will fail. This fixes the build of linux-fslc-imx-rt for i.MX7D as it does not have a Vivante GPU. Signed-off-by: Otavio Salvador --- classes/fsl-vivante-kernel-driver-handler.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/fsl-vivante-kernel-driver-handler.bbclass b/classes/fsl-vivante-kernel-driver-handler.bbclass index cdd6450..e0578f4 100644 --- a/classes/fsl-vivante-kernel-driver-handler.bbclass +++ b/classes/fsl-vivante-kernel-driver-handler.bbclass @@ -20,7 +20,7 @@ # 0 - enable the builtin kernel driver module # 1 - enable the external kernel module # -# Copyright 2015 (C) O.S. Systems Software LTDA. +# Copyright 2015, 2016 (C) O.S. Systems Software LTDA. # Released under the MIT license (see COPYING.MIT for the terms) # Handle Vivante kernel driver setting: @@ -31,7 +31,7 @@ MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT ??= "0" # Use Vivante kernel driver module: # 0 - enable the builtin kernel driver module # 1 - enable the external kernel module -MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE ??= "1" +MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE ??= "${@d.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT', False) or '0'}" python fsl_vivante_kernel_driver_handler () { has_vivante_kernel_driver_support = e.data.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT', True) or "0" -- 2.9.0