mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-29 23:04:58 +00:00
kernel-selftest: only emit warning on clang if bpf is built
Only emit warning on clang if bpf is actually in PACKAGECONFIG. Signed-off-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
a3df40b1ba
commit
31da4a2cb1
@ -60,10 +60,13 @@ KERNEL_SELFTEST_SRC ?= "Makefile \
|
|||||||
"
|
"
|
||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
|
if [ ${@bb.utils.contains('PACKAGECONFIG', 'bpf', 'True', 'False', d)} = 'True' ]; then
|
||||||
if [ ${@bb.utils.contains('DEPENDS', 'clang-native', 'True', 'False', d)} = 'False' ]; then
|
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
|
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"
|
either install it and add it to HOSTTOOLS, or add clang-native from meta-clang to dependency"
|
||||||
fi
|
fi
|
||||||
|
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}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user