[oe-commits] [meta-openembedded] 05/15: kernel-selftest: Warn conditionally about clang-native dependency
git at git.openembedded.org
git at git.openembedded.org
Wed Aug 28 14:16:41 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.
commit 1135fd0f7d09f60d15bcffe3b4f4d812f7befa4c
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