Skip to content

Commit e83d058

Browse files
committed
redhat/spec: package full bpftool in selftests
JIRA: https://issues.redhat.com/browse/RHEL-91378 Upstream Status: RHEL-only test_bpftool.sh selftests fails because selftests is packaged with bootstrap bpftool. The full bpftool is built already when compiling so replace bootstrap bpftool with the full bpftool in selftests package. Signed-off-by: Gregory Bell <grbell@redhat.com>
1 parent 64c58bb commit e83d058

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

redhat/kernel.spec.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,6 +3242,11 @@ rm -f %{buildroot}/usr/libexec/kselftests/bpf/urandom_read
32423242
rm -f %{buildroot}/usr/libexec/kselftests/bpf/no_alu32/urandom_read
32433243
rm -f %{buildroot}/usr/libexec/kselftests/bpf/cpuv4/urandom_read
32443244

3245+
3246+
# Copy bpftool to kselftests so selftests is packaged with
3247+
# the full bpftool instead of bootstrap bpftool
3248+
cp ./bpf/tools/sbin/bpftool %{buildroot}%{_libexecdir}/kselftests/bpf/bpftool
3249+
32453250
popd
32463251
%{log_msg "end build selftests"}
32473252
%endif

0 commit comments

Comments
 (0)