All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gowtham Tammana <g-tammana@ti.com>
To: <meta-arago@arago-project.org>,
	Praneeth Bajjuri <praneeth@ti.com>, <denys@konsulko.com>
Cc: "Franklin S. Cooper Jr" <fcooper@ti.com>
Subject: [dunfell/master][PATCH 1/6] ti-demos: Add feature check for pdm demos
Date: Wed, 5 May 2021 21:58:07 -0500	[thread overview]
Message-ID: <20210506025812.25256-2-g-tammana@ti.com> (raw)
In-Reply-To: <20210506025812.25256-1-g-tammana@ti.com>

`pdm-anomaly-detection` needs qt which in turns is dependent on gpu
machine feature. Add the corresponding feature check to capture
dependencies correctly.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
---
 .../recipes-core/packagegroups/ti-demos.bb             | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/meta-arago-distro/recipes-core/packagegroups/ti-demos.bb b/meta-arago-distro/recipes-core/packagegroups/ti-demos.bb
index 054c2f53..6141799f 100644
--- a/meta-arago-distro/recipes-core/packagegroups/ti-demos.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/ti-demos.bb
@@ -5,11 +5,13 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit packagegroup
 
+PDM_ANOMALY_PKG = "${@bb.utils.contains('MACHINE_FEATURES', 'gpu', 'pdm-anomaly-detection', '', d)}"
+
 PDM_ANOMALY = ""
-PDM_ANOMALY_ti33x = "pdm-anomaly-detection"
-PDM_ANOMALY_ti43x = "pdm-anomaly-detection"
-PDM_ANOMALY_omap-a15 = "pdm-anomaly-detection"
-PDM_ANOMALY_am65xx = "pdm-anomaly-detection"
+PDM_ANOMALY_ti33x = "${PDM_ANOMALY_PKG}"
+PDM_ANOMALY_ti43x = "${PDM_ANOMALY_PKG}"
+PDM_ANOMALY_omap-a15 = "${PDM_ANOMALY_PKG}"
+PDM_ANOMALY_am65xx = "${PDM_ANOMALY_PKG}"
 
 RDEPENDS_${PN} = "\
     ${PDM_ANOMALY} \
-- 
2.31.1



  reply	other threads:[~2021-05-06  2:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-06  2:58 [dunfell/master][PATCH 0/6] Install qt based demos on machine feature check Gowtham Tammana
2021-05-06  2:58 ` Gowtham Tammana [this message]
2021-05-06  2:58 ` [dunfell/master][PATCH 2/6] packagegroup-arago-tisdk*: add feature check for pdm-anomaly-detection Gowtham Tammana
2021-05-06  2:58 ` [dunfell/master][PATCH 3/6] packagegroup-arago-tisdk*: Add feature depenendency for dual-camera-demo Gowtham Tammana
2021-05-06  2:58 ` [dunfell/master][PATCH 4/6] packagegroups-arago-tisdk*: image-gallery: Add machine feature conditional Gowtham Tammana
2021-05-06  2:58 ` [dunfell/master][PATCH 5/6] tisdk-core-bundle: Conditionally install the hmi demos Gowtham Tammana
2021-05-06  2:58 ` [dunfell/master][PATCH 6/6] packagegroup-arago-tisdk-hmi*: Install them conditionally Gowtham Tammana
2021-05-06 17:29 ` [dunfell/master][PATCH 0/6] Install qt based demos on machine feature check Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210506025812.25256-2-g-tammana@ti.com \
    --to=g-tammana@ti.com \
    --cc=denys@konsulko.com \
    --cc=fcooper@ti.com \
    --cc=meta-arago@arago-project.org \
    --cc=praneeth@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.