From: Denys Dmytriyenko <[email protected]>

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 .../packagegroups/packagegroup-arago-tisdk-opencl-sdk-host.bb | 10 ++++++----
 .../packagegroup-arago-tisdk-opencl-sdk-target.bb             | 11 ++++++-----
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-host.bb
 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-host.bb
index 321af12..f1accc0 100644
--- 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-host.bb
+++ 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-host.bb
@@ -4,19 +4,21 @@ PR = "r1"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-inherit packagegroup
+inherit packagegroup features_check
+
+REQUIRED_DISTRO_FEATURES = "opencl"
 
 UTILS = " \
     opencl-examples-src \
-    openmpacc-examples-src \
+    ${@oe.utils.all_distro_features(d, 'openmp', 'openmpacc-examples-src')} \
 "
 
 UTILS_append_k2hk = " \
-    linalg-examples-src \
+    ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-examples-src')} \
 "
 
 UTILS_append_dra7xx = " \
-    linalg-examples-src \
+    ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-examples-src')} \
 "
 
 RDEPENDS_${PN} = "\
diff --git 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb
 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb
index b103315..550e5b9 100644
--- 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb
+++ 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb
@@ -4,20 +4,21 @@ PR = "r2"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-inherit packagegroup
+inherit packagegroup features_check
+
+REQUIRED_DISTRO_FEATURES = "opencl"
 
 UTILS = " \
     opencl-staticdev \
-    openmpacc-dev \
-    python-pyopencl-dev \
+    ${@oe.utils.all_distro_features(d, 'openmp', 'openmpacc-dev')} \
 "
 
 UTILS_append_k2hk = " \
-    linalg-dev \
+    ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-dev')} \
 "
 
 UTILS_append_dra7xx = " \
-    linalg-dev \
+    ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-dev')} \
 "
 
 RDEPENDS_${PN} = "\
-- 
2.7.4

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

Reply via email to