From: Denys Dmytriyenko <[email protected]>

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-opencl.bb    | 4 ++--
 meta-arago-extras/recipes-ti/linalg/linalg.inc                       | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl.bb
 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl.bb
index 4b3e9db..63b9f20 100644
--- 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl.bb
+++ 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl.bb
@@ -17,12 +17,12 @@ EXTRA_PKGS = " \
 
 #    ti-fftw-examples
 EXTRA_PKGS_append_k2hk = " \
-    linalg-examples \
+    ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-examples')} \
 "
 
 #    ti-fftw-examples
 EXTRA_PKGS_append_dra7xx = " \
-    linalg-examples \
+    ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-examples')} \
 "
 
 RDEPENDS_${PN} = "\
diff --git a/meta-arago-extras/recipes-ti/linalg/linalg.inc 
b/meta-arago-extras/recipes-ti/linalg/linalg.inc
index 60a9b4b..6883b99 100644
--- a/meta-arago-extras/recipes-ti/linalg/linalg.inc
+++ b/meta-arago-extras/recipes-ti/linalg/linalg.inc
@@ -10,6 +10,11 @@ COMPATIBLE_MACHINE = "k2hk|dra7xx"
 require recipes-ti/includes/arago-paths.inc
 require recipes-ti/includes/ti-staging.inc
 
+inherit features_check
+
+REQUIRED_MACHINE_FEATURES = "dsp"
+REQUIRED_DISTRO_FEATURES = "opencl openmp"
+
 SRC_URI = " \
        
git://git.ti.com/dense-linear-algebra-libraries/linalg.git;protocol=git;branch=${BRANCH}
 \
        file://0001-Makefile-fix-toolchain-variables.patch \
-- 
2.7.4

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

Reply via email to