From: Denys Dmytriyenko <[email protected]>

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 meta-arago-distro/recipes-core/packagegroups/ti-analytics.bb  | 11 +++++++++--
 .../tensorflow-lite/tensorflow-lite-demo_git.bb               |  5 +++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/meta-arago-distro/recipes-core/packagegroups/ti-analytics.bb 
b/meta-arago-distro/recipes-core/packagegroups/ti-analytics.bb
index ffed472..994179c 100644
--- a/meta-arago-distro/recipes-core/packagegroups/ti-analytics.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/ti-analytics.bb
@@ -8,9 +8,16 @@ inherit packagegroup
 ARMNN_PACKAGES = ""
 #ARMNN_PACKAGES = "${@bb.utils.contains('MACHINE_FEATURES', 'dsp', 'armnn', 
'', d)}"
 
-ANALYTICS = "\
+TENSORFLOW_DEMO = " \
+    ${@oe.utils.all_distro_features(d, 'opencv', 'tensorflow-lite-demo', '')} \
+"
+TENSORFLOW_DEMO_dra7xx = " \
+    ${@['','tensorflow-lite-demo'][oe.utils.all_distro_features(d, 'opencl 
opencv', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, 
False, d)]} \
+"
+
+ANALYTICS = " \
     ${ARMNN_PACKAGES} \
-    tensorflow-lite-demo \
+    ${TENSORFLOW_DEMO} \
 "
 ANALYTICS_keystone = ""
 ANALYTICS_j7-evm = ""
diff --git 
a/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-demo_git.bb 
b/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-demo_git.bb
index c8417e1..c45acf4 100644
--- 
a/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-demo_git.bb
+++ 
b/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-demo_git.bb
@@ -2,6 +2,11 @@ SUMMARY = "Tensorflow Lite Demo with input and display via 
OpenCV and TIDL accel
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=d8927f3331d2b3e321b7dd1925166d25"
 
+inherit features_check
+
+REQUIRED_DISTRO_FEATURES = "opencv"
+REQUIRED_DISTRO_FEATURES_append_dra7xx = " opencl"
+
 DEPENDS = "tensorflow-lite flatbuffers opencv"
 DEPENDS_append_dra7xx = " tidl-api"
 
-- 
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to