From patchwork Wed Jan 10 14:32:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 124101 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5346958qgn; Wed, 10 Jan 2018 06:32:28 -0800 (PST) X-Google-Smtp-Source: ACJfBosK1J6mxniyNZBCCPnoTozUj2Vuu/XAUJyj3b7oySZR7ls8HPWQVCAzCyC46mqzCsyEwBgA X-Received: by 10.99.171.9 with SMTP id p9mr14814145pgf.360.1515594748030; Wed, 10 Jan 2018 06:32:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515594748; cv=none; d=google.com; s=arc-20160816; b=HiP1F48zg8lQzeiSwUirg6iIdG+U4ab1Ige9LQ/K4g/gMbeeN6BOzHwU/TS2ZEGnCl XpFsKQ7MWvPHQiXdiPZ2hng7Rx0GzcCqVsPg9OHfu6nADyqKZWkHUUjEhWrddlvr9kLI urUq8ESAil6lXpiheSj3H/oHWc41k/jruxqP2cClywEUm9/X0i9gS+0SFlb8dm1yVM0L 2XeFJclrYwIGPcyv8HX7nYWoDEQ3PvSTfuL4rKWpjfy/249UgInIM+R3IcUmZfI2EWEf iMs6myi8rVaNzwamq0yGwmrIuXn8bV2VrZZHce2F7h0OieC0VPeUFAVF80u5Xnq5pHav /qKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=TG/lEGE8k/LCyubNztEzDt/zAd9l7PFptIEdqGG9rY4=; b=lJc+V67FTtrBZ78YPgpCv9emxh6plSi5pQSvIrmZeKf2Qag0NzLWPz0XE+WCFpAiX/ 8aQMv8uLUIR0caXk+8WjwytIrLA+PFX86RDq8uAbpgDXg47yZ2Flo4+/+9KXui5zDw7P YMc/lVQNP/jUJCkhRMjp1qmb5m/N8KWPCuFro0Up1H3ImhRmjsskX8asp/iWA2XxfEHT HlrXHS5t95MQ4BR5vKo4jTEZoN8ujPmWabsnLVuGAOxfTqmOu1t+rbnBDON1YFhq4I/5 7xu+ZjWDHsYz3SVOPSiV2XScpX1w+3AitXI2gO/CbI/66YC4E1Q8fn3SQrfVxCiFbmMK jFrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=P2kftJyJ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id u16si1414928plk.130.2018.01.10.06.32.27; Wed, 10 Jan 2018 06:32:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=P2kftJyJ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 1100378856; Wed, 10 Jan 2018 14:32:22 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by mail.openembedded.org (Postfix) with ESMTP id F39F27884F for ; Wed, 10 Jan 2018 14:32:20 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id 143so2374380wma.5 for ; Wed, 10 Jan 2018 06:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=K8SorJgVDxxsnfu3lbdIMlhzREcNOVqK7vCZm6iSiNM=; b=P2kftJyJ+d60RSZHKUax+eJGvoAbgWMmOk9BwzXWKJQXgrEhDatxc/zIJeEfo9OrIt UDVwKxyUhCaJem0a1VasuLJp4UxzvkgkPCS6GK5XMe4qHcZqbNwTEoip1w3dJWFl/ysx yYmTWqV+bz7lySP6ySPSUrDxF5WOXZqBsOrCHouYAzehjp0tF16DHpQPzCs3ELkv/NWd +EpoMIf1Ud6y8Kb5MLV1Tev4S27TSmjZn8dsn6dVyBNiGmsPjrDM8E8PvqVJEVxhcZRa KTeKDjJejhD7QEaLpMgBsKhT3HF3SpE2lkEBIewYUbhYjBcsZaew4sSUFp8HI88cTn4i aJ0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=K8SorJgVDxxsnfu3lbdIMlhzREcNOVqK7vCZm6iSiNM=; b=U2/ZPk+1uycZgju/VvUXdMGP/eaUHZowAOqgKxPdFI2AteoVioe0lTKOIlaywnwP9R JWNuBtI6VkTja81VXyuQto6Y7HhbKljJv5i+Tm+EIP9KHOPkLkp02ORPBWKyKXfj6Oh/ iirsEXplPuqyLP35Ge2k339BE1pFTkPaDuwUbTzL2mHoEEsewVRcZr4aQw21bfX4DpIX gDeRVpHG6pPRgII3/ip0SdQSakYvXNnwirxKbyjevWCMWLUsAZP45JxYqgZrim5oN76k CM8JuE8dr+vn6APCTSgJotdbcywyhSa72lY6WkOPsU41hFC5j74nhQilzyhVaaBqjaKT i9wg== X-Gm-Message-State: AKwxytcvodUYbRoyLUwsIP1STyiYVrvvhiDwZNAYgbaa7MpVuq46GL7E ANyWDRSwaQBeJtleHiJU89f0GH0H X-Received: by 10.28.30.82 with SMTP id e79mr2298747wme.6.1515594741481; Wed, 10 Jan 2018 06:32:21 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id 89sm16416434wrl.22.2018.01.10.06.32.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jan 2018 06:32:20 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 10 Jan 2018 14:32:18 +0000 Message-Id: <20180110143218.22958-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] perf: conditionalise pythonnative and perlnative inherits X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Only inherit these classes (and so, add perl-native and python-native to DEPENDS) if the scripting PACKAGECONFIG is actually enabled. Signed-off-by: Ross Burton --- meta/recipes-kernel/perf/perf.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index bb943ecd1c5..1bad6f4e9bf 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -35,9 +35,10 @@ do_configure[depends] += "virtual/kernel:do_shared_workdir" PROVIDES = "virtual/perf" -inherit linux-kernel-base kernel-arch pythonnative +inherit linux-kernel-base kernel-arch # needed for building the tools/perf Python bindings +inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'pythonnative', '', d)} inherit python-dir export PYTHON_SITEPACKAGES_DIR @@ -47,7 +48,8 @@ export WERROR = "0" do_populate_lic[depends] += "virtual/kernel:do_patch" # needed for building the tools/perf Perl binding -inherit perlnative cpan-base +inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'perlnative', '', d)} +inherit cpan-base # Env var which tells perl if it should use host (no) or target (yes) settings export PERLCONFIGTARGET = "${@is_target(d)}" export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE"