[oe-commits] [meta-openembedded] branch master-next updated: kernel-selftest: Warn conditionally about clang-native dependency

git at git.openembedded.org git at git.openembedded.org
Wed Aug 28 03:55:16 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

The following commit(s) were added to refs/heads/master-next by this push:
     new 138a6d4  kernel-selftest: Warn conditionally about clang-native dependency
138a6d4 is described below

commit 138a6d41fbafa50780e62b768f988811dc18edd1
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Tue Aug 27 20:43:54 2019 -0700

    kernel-selftest: Warn conditionally about clang-native dependency
    
    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 at gmail.com>
---
 meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 7370f9f..dce33c1 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}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list