diff options
| author | Scott Branden <scott.branden@broadcom.com> | 2020-03-31 22:15:55 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-03-31 23:56:41 -0700 |
| commit | 31da4a2cb173d236d16098d351335ba780c89808 (patch) | |
| tree | 7ed98a70865094e5839ece2e42a5920c10b6ce44 | |
| parent | a3df40b1ba8e086700f63c63f353f69a673d501c (diff) | |
| download | meta-openembedded-31da4a2cb173d236d16098d351335ba780c89808.tar.gz | |
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>
| -rw-r--r-- | meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb index 172767b9a6..8b549f9a42 100644 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | |||
| @@ -60,10 +60,13 @@ KERNEL_SELFTEST_SRC ?= "Makefile \ | |||
| 60 | " | 60 | " |
| 61 | 61 | ||
| 62 | do_compile() { | 62 | do_compile() { |
| 63 | if [ ${@bb.utils.contains('PACKAGECONFIG', 'bpf', 'True', 'False', d)} = 'True' ]; then | ||
| 63 | if [ ${@bb.utils.contains('DEPENDS', 'clang-native', 'True', 'False', d)} = 'False' ]; then | 64 | if [ ${@bb.utils.contains('DEPENDS', 'clang-native', 'True', 'False', d)} = 'False' ]; then |
| 64 | bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so | 65 | bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so |
| 65 | either install it and add it to HOSTTOOLS, or add clang-native from meta-clang to dependency" | 66 | either install it and add it to HOSTTOOLS, or add clang-native from meta-clang to dependency" |
| 66 | fi | 67 | fi |
| 68 | fi | ||
| 69 | |||
| 67 | for i in ${TEST_LIST} | 70 | for i in ${TEST_LIST} |
| 68 | do | 71 | do |
| 69 | oe_runmake -C ${S}/tools/testing/selftests/${i} | 72 | oe_runmake -C ${S}/tools/testing/selftests/${i} |
