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@gmail.com>
This commit is contained in:
Khem Raj
2019-08-27 20:43:54 -07:00
parent 392fee87fc
commit e1acbf33f7
@@ -63,9 +63,10 @@ python __anonymous () {
} }
do_compile() { do_compile() {
bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so \ if [ ${@bb.utils.contains('DEPENDS', 'clang-native', 'True', 'False', d)} = 'False' ]; then
either install it and add it to HOSTTOOLS, or add \ bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so
clang-native from meta-clang to dependency" either install it and add it to HOSTTOOLS, or add clang-native from meta-clang to dependency"
fi
for i in ${TEST_LIST} for i in ${TEST_LIST}
do do
oe_runmake -C ${S}/tools/testing/selftests/${i} oe_runmake -C ${S}/tools/testing/selftests/${i}