From: Jerome Marchand <jmarchan(a)redhat.com>
bpf/selftests: fix bpf selftests install
bpftool is not installed in bpf/no_alu32/. That's because it is a
link. Add a link to bpf/bpftool in bpf/no_alu32/.
Signed-off-by: Jerome Marchand <jmarchan(a)redhat.com>
Signed-off-by: Felix Maurer <fmaurer(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -2577,6 +2577,7 @@ for dir in bpf bpf/no_alu32 bpf/progs; do
-name '*.o' -exec sh -c 'readelf -h "{}" | grep -q "^
Machine:.*BPF"' \; \) -print0 | \
xargs -0 cp -t %{buildroot}%{_libexecdir}/kselftests/$dir || true
done
+ln -sr %{buildroot}%{_libexecdir}/kselftests/bpf/bpftool
%{buildroot}%{_libexecdir}/kselftests/bpf/no_alu32/bpftool
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs"
popd
export -n BPFTOOL
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2422