diff mbox series

[meta-oe,38/39] kernel-selftest: Depend on clang-native for the net BPF objects

Message ID 20261127041343.1772294-10-khem.raj@oss.qualcomm.com
State New
Headers show
Series None | expand

Commit Message

Khem Raj Nov. 27, 2026, 4:13 a.m. UTC
net and net/lib build nat6to4.bpf.o, xdp_dummy.bpf.o and friends with
plain "clang", whatever the toolchain. clang-native used to reach the
sysroot indirectly; without it the BPF rules fail with
"clang: command not found" (Error 127). The selftests top-level make
does not propagate that, so the net install stopped after lib and
mptcp, and every net test reported "file ... is missing!" in ptest.

Add clang-native to DEPENDS. The net directory now installs all its
tests.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 96b837fb20..2a0368d873 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -8,6 +8,8 @@  DEPENDS = "rsync-native llvm-native libcap"
 # net: libbpf (elfutils, zlib), YNL code generation (python3-pyyaml-native,
 # python3-jsonschema-native), reuseport_bpf_numa (numactl) and tcp_mmap (openssl)
 DEPENDS += "elfutils numactl openssl python3-jsonschema-native python3-pyyaml-native zlib"
+# net and net/lib build their BPF objects with clang, whatever the toolchain
+DEPENDS += "clang-native"
 
 S = "${UNPACKDIR}"