Skip to content

Commit fdb81b0

Browse files
committed
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: Viktor Malik <vmalik@redhat.com> Approved-by: Jan Stancek <jstancek@redhat.com> Approved-by: Jerome Marchand <jmarchan@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Julio Faracco <jfaracco@redhat.com>
2 parents adcaf2e + 7cb365a commit fdb81b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redhat/kernel.spec.template

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3263,7 +3263,7 @@ export CFLAGS="%{build_cflags}"
32633263
# 'make install' for bpf is broken and upstream refuses to fix it.
32643264
# Install the needed files manually.
32653265
%{log_msg "install selftests"}
3266-
for dir in bpf bpf/no_alu32 bpf/progs; do
3266+
for dir in bpf bpf/no_alu32 bpf/cpuv4 bpf/progs; do
32673267
# In ARK, the rpm build continues even if some of the selftests
32683268
# cannot be built. It's not always possible to build selftests,
32693269
# as upstream sometimes dependens on too new llvm version or has
@@ -3279,14 +3279,17 @@ done
32793279

32803280
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs"
32813281
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs-no_alu32"
3282+
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs-cpuv4"
32823283

32833284
# The urandom_read binary doesn't pass the check-rpaths check and upstream
32843285
# refuses to fix it. So, we save it to buildroot_unstripped and delete it so it
32853286
# will be hidden from check-rpaths and will automatically get restored later.
32863287
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/urandom_read"
32873288
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/no_alu32/urandom_read"
3289+
%buildroot_save_unstripped "usr/libexec/kselftests/bpf/cpuv4/urandom_read"
32883290
rm -f %{buildroot}/usr/libexec/kselftests/bpf/urandom_read
32893291
rm -f %{buildroot}/usr/libexec/kselftests/bpf/no_alu32/urandom_read
3292+
rm -f %{buildroot}/usr/libexec/kselftests/bpf/cpuv4/urandom_read
32903293

32913294
popd
32923295
%{log_msg "end build selftests"}

0 commit comments

Comments
 (0)