| Message ID | 20261127041343.1772294-10-khem.raj@oss.qualcomm.com |
|---|---|
| State | New |
| Headers | show |
| Series | None | expand |
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}"
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(+)