diff mbox series

[oe,meta-oe] kernel-selftest: Warn conditionally about clang-native dependency

Message ID 20190828034526.16731-1-raj.khem@gmail.com
State Accepted
Commit e1acbf33f7acd4f5b42e777fbd5b4fe506ad559c
Headers show
Series [oe,meta-oe] kernel-selftest: Warn conditionally about clang-native dependency | expand

Commit Message

Khem Raj Aug. 28, 2019, 3:45 a.m. UTC
When meta-clang is in mix then it does the right thing already so no
need to warn in that case

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
2.23.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 7370f9fb41..dce33c16c5 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -63,9 +63,10 @@  python __anonymous () {
 }
 
 do_compile() {
-    bbwarn "clang >= 6.0  with bpf support is needed with kernel 4.18+ so \
-either install it and add it to HOSTTOOLS, or add \
-clang-native from meta-clang to dependency"
+    if [ ${@bb.utils.contains('DEPENDS', 'clang-native', 'True', 'False', d)} = 'False' ]; then
+        bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so
+either install it and add it to HOSTTOOLS, or add clang-native from meta-clang to dependency"
+    fi
     for i in ${TEST_LIST}
     do
         oe_runmake -C ${S}/tools/testing/selftests/${i}