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 3/6] packagegroup-arago-tisdk*: Add feature depenendency for dual-camera-demo
Date: Wed, 5 May 2021 21:58:09 -0500	[thread overview]
Message-ID: <20210506025812.25256-4-g-tammana@ti.com> (raw)
In-Reply-To: <20210506025812.25256-1-g-tammana@ti.com>

`dual-camera-demo` package is qt based application, which is dependent
on gpu machine feature. Add the package to packagegroups conditionally
to enusure correct dependency chain.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
---
 .../packagegroups/packagegroup-arago-tisdk-matrix.bb        | 2 +-
 .../packagegroup-arago-tisdk-multimedia-sdk-host.bb         | 6 ++++--
 .../packagegroups/packagegroup-arago-tisdk-multimedia.bb    | 6 ++++--
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb
index 2483e8a8..65c75459 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb
@@ -49,6 +49,7 @@ MATRIX_QT_APPS_append_ti33x = " \
 
 MATRIX_QT_APPS_append_ti43x = " \
     matrix-analytics-pdm-anomaly-detection \
+    matrix-gui-apps-dual-camera     \
 "
 
 MATRIX_TOUCH_APPS = " \
@@ -126,7 +127,6 @@ MATRIX_APPS_append_ti43x = "        \
     matrix-gui-clocks               \
     matrix-gui-pm-demos-governor    \
                                     \
-    matrix-gui-apps-dual-camera     \
     matrix-gui-apps-image-gallery   \
                                     \
     matrix-hmi-demo-evse            \
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb
index 081cc926..f3c23b83 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb
@@ -11,18 +11,20 @@ BARCODE_PKG = ""
 #    ${@['','barcode-roi-src'][oe.utils.all_distro_features(d, 'opencv', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \
 #"
 
+DUAL_CAMERA_PKG = "${@bb.utils.contains('MACHINE_FEATURES', 'gpu', 'dual-camera-demo-src', '', d)}"
+
 MULTIMEDIA = ""
 
 MULTIMEDIA_append_ti33x = " ${BARCODE_PKG}"
 
 MULTIMEDIA_append_ti43x = " \
-    dual-camera-demo-src \
+    ${DUAL_CAMERA_PKG} \
     image-gallery-src \
     ${BARCODE_PKG} \
 "
 
 MULTIMEDIA_append_omap-a15 = " \
-    dual-camera-demo-src \
+    ${DUAL_CAMERA_PKG} \
     image-gallery-src \
     ${BARCODE_PKG} \
 "
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
index 36ebd35a..da1a64e2 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
@@ -16,13 +16,15 @@ MULTIMEDIA_append_keystone = " \
     hevc-arm-decoder \
 "
 
+DUAL_CAMERA_DEMO = "${@bb.utils.contains('MACHINE_FEATURES', 'gpu', 'dual-camera-demo', '', d)}"
+
 MULTIMEDIA_append_ti43x = " \
-    dual-camera-demo \
+    ${DUAL_CAMERA_DEMO} \
     image-gallery \
 "
 
 MULTIMEDIA_append_omap-a15 = " \
-    dual-camera-demo \
+    ${DUAL_CAMERA_DEMO} \
     image-gallery \
 "
 
-- 
2.31.1



  parent 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 ` [dunfell/master][PATCH 1/6] ti-demos: Add feature check for pdm demos Gowtham Tammana
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 ` Gowtham Tammana [this message]
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-4-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.