Skip to content
Snippets Groups Projects
Commit fdb81b0f authored by Julio Faracco's avatar Julio Faracco
Browse files

Merge: redhat: selftests/bpf: Add cpuv4 variant

MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/634

JIRA: https://issues.redhat.com/browse/RHEL-82993



Upstream status: RHEL only

We use special handling for BPF selftests variants. Add support for the cpuv4 variant.

Signed-off-by: default avatarViktor Malik <vmalik@redhat.com>

Approved-by: default avatarJan Stancek <jstancek@redhat.com>
Approved-by: default avatarJerome Marchand <jmarchan@redhat.com>
Approved-by: default avatarCKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: default avatarJulio Faracco <jfaracco@redhat.com>
parents adcaf2eb 7cb365a0
No related branches found
No related tags found
No related merge requests found
......@@ -3263,7 +3263,7 @@ export CFLAGS="%{build_cflags}"
# 'make install' for bpf is broken and upstream refuses to fix it.
# Install the needed files manually.
%{log_msg "install selftests"}
for dir in bpf bpf/no_alu32 bpf/progs; do
for dir in bpf bpf/no_alu32 bpf/cpuv4 bpf/progs; do
# In ARK, the rpm build continues even if some of the selftests
# cannot be built. It's not always possible to build selftests,
# as upstream sometimes dependens on too new llvm version or has
......@@ -3279,14 +3279,17 @@ done
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs"
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs-no_alu32"
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs-cpuv4"
# The urandom_read binary doesn't pass the check-rpaths check and upstream
# refuses to fix it. So, we save it to buildroot_unstripped and delete it so it
# will be hidden from check-rpaths and will automatically get restored later.
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/urandom_read"
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/no_alu32/urandom_read"
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/cpuv4/urandom_read"
rm -f %{buildroot}/usr/libexec/kselftests/bpf/urandom_read
rm -f %{buildroot}/usr/libexec/kselftests/bpf/no_alu32/urandom_read
rm -f %{buildroot}/usr/libexec/kselftests/bpf/cpuv4/urandom_read
popd
%{log_msg "end build selftests"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment