Skip to contentSkip to conversation

ti-analytics: only install packages on compatible platforms

RFC PATCH New Denys Dmytriyenko 1 participant 3 messages Feb 5, 2020

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/3 ti-analytics: only install packages on compatible platforms

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/recipes-core/packagegroups/ti-analytics.bb | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/ti-analytics.bb +10 -1
index e5a13f6..116f3ad 100644
@@ -1,9 +1,18 @@
 SUMMARY = "TI World packagegroup"
 LICENSE = "MIT"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 inherit packagegroup
 
-RDEPENDS_${PN} = "\
+ANALYTICS = "\
     armnn \
     tensorflow-lite-examples \
 "
+ANALYTICS_keystone = ""
+ANALYTICS_j7-evm = ""
+ANALYTICS_omapl138 = ""
+
+RDEPENDS_${PN} = "\
+    ${ANALYTICS} \
+"
Signature · 1 line
2.7.4
#1 lore raw

RFC PATCH 2/3 ti-demos: only install packages on compatible platforms

From: Denys Dmytriyenko <[email protected]>

---
 .../recipes-core/packagegroups/ti-demos.bb              | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/packagegroups/ti-demos.bb +15 -2
index 20d73b9..a20ed05 100644
@@ -1,9 +1,22 @@
 SUMMARY = "TI World packagegroup"
 LICENSE = "MIT"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 inherit packagegroup
 
+VOXEL = ""
+VOXEL_ti33x = "voxelsdk"
+VOXEL_ti43x = "voxelsdk"
+VOXEL_omap-a15 = "voxelsdk"
+
+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"
+
 RDEPENDS_${PN} = "\
-    voxelsdk \
-    pdm-anomaly-detection \
+    ${VOXEL} \
+    ${PDM_ANOMALY} \
 "
Signature · 1 line
2.7.4
#2 lore raw

RFC PATCH 3/3 ti-opecl: make alias machine-specific and depend on "dsp" feature

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/recipes-core/packagegroups/ti-opencl.bb | 2 ++
 meta-arago-distro/recipes-core/packagegroups/ti-world.bb  | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/packagegroups/ti-opencl.bb +2 -0
index b962779..20abf17 100644
@@ -2,6 +2,8 @@
 
 LICENSE = "MIT"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 inherit packagegroup
 
 PACKAGES += "${PN}-runtime"
meta-arago-distro/recipes-core/packagegroups/ti-world.bb +1 -2
index c9aad1f..e46a1b4 100644
@@ -36,7 +36,7 @@ RDEPENDS_${PN} = "\
     ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-graphics','',d)} \
     ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-gtk','',d)} \
     ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-qte qt3d-examples','',d)} \
-    ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl','',d)} \
+    ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl ti-opencl','',d)} \
     ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl-extra','',d)} \
     packagegroup-arago-tisdk-connectivity \
     packagegroup-arago-tisdk-crypto \
@@ -55,5 +55,4 @@ RDEPENDS_${PN} = "\
     packagegroup-arago-misc \
     ti-analytics \
     ti-demos \
-    ti-opencl \
 "
Signature · 1 line
2.7.4