Return-Path: Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by arago-project.org (Postfix) with ESMTPS id 5756452A2B for ; Tue, 17 Mar 2020 20:13:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id B326B40C2D; Tue, 17 Mar 2020 20:11:47 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p5qOEynVz-Rm; Tue, 17 Mar 2020 20:11:47 +0000 (UTC) Received: from mail.denix.org (pool-100-15-86-127.washdc.fios.verizon.net [100.15.86.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id 9DD4B40C2C; Tue, 17 Mar 2020 20:11:46 +0000 (UTC) Received: from gimli.denix (unknown [192.168.30.6]) by mail.denix.org (Postfix) with ESMTP id 0910B171267; Tue, 17 Mar 2020 16:11:45 -0400 (EDT) From: Denys Dmytriyenko To: meta-arago@arago-project.org Date: Tue, 17 Mar 2020 16:11:40 -0400 Message-Id: <1584475904-3730-5-git-send-email-denys@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1584475904-3730-1-git-send-email-denys@ti.com> References: <1584475904-3730-1-git-send-email-denys@ti.com> Subject: [master][PATCH 5/9] ti-test: only include mstpd when Python2 is enabled X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2020 20:13:58 -0000 Signed-off-by: Denys Dmytriyenko --- meta-arago-distro/recipes-core/packagegroups/ti-test.bb | 2 +- meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-arago-distro/recipes-core/packagegroups/ti-test.bb b/meta-arago-distro/recipes-core/packagegroups/ti-test.bb index 7dc1fe4..a266e26 100644 --- a/meta-arago-distro/recipes-core/packagegroups/ti-test.bb +++ b/meta-arago-distro/recipes-core/packagegroups/ti-test.bb @@ -29,7 +29,7 @@ ARAGO_TEST = "\ procps \ mtd-utils-ubifs-tests \ pcitest \ - mstpd \ + ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "mstpd", "", d)} \ fio \ git \ " diff --git a/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb b/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb index eeeeb82..db8f08c 100644 --- a/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb +++ b/meta-arago-extras/recipes-support/mstpctl/mstpd_git.bb @@ -18,3 +18,8 @@ RDEPENDS_${PN} = "python-core" inherit autotools EXTRA_OECONF = "--sbindir=/sbin" + +python() { + if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split(): + raise bb.parse.SkipRecipe('Requires meta-python2 to be present.') +} -- 2.7.4