Skip to content

Commit ddce7c5

Browse files
committed
redhat: spec: add cachestat to kselftest package
JIRA: https://issues.redhat.com/browse/RHEL-50302 Upstream Status: RHEL-only Build, install and add cachestat kselftest to the appropriate package. Signed-off-by: Eric Chanudet <echanude@redhat.com>
1 parent c493431 commit ddce7c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

redhat/kernel.spec.template

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2783,7 +2783,7 @@ export BPFTOOL=$(pwd)/tools/bpf/bpftool/bpftool
27832783
pushd tools/testing/selftests
27842784
# We need to install here because we need to call make with ARCH set which
27852785
# doesn't seem possible to do in the install section.
2786-
%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf cgroup mm livepatch net net/forwarding net/mptcp netfilter tc-testing memfd drivers/net/bonding iommu" SKIP_TARGETS="" FORCE_TARGETS=1 INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" DEFAULT_INSTALL_HDR_PATH=0 install
2786+
%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf cgroup mm livepatch net net/forwarding net/mptcp netfilter tc-testing memfd drivers/net/bonding iommu cachestat" SKIP_TARGETS="" FORCE_TARGETS=1 INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" DEFAULT_INSTALL_HDR_PATH=0 install
27872787

27882788
# 'make install' for bpf is broken and upstream refuses to fix it.
27892789
# Install the needed files manually.
@@ -3177,6 +3177,12 @@ find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/iommu/{} \;
31773177
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/iommu/{} \;
31783178
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/iommu/{} \;
31793179
popd
3180+
# install cachestat selftests
3181+
pushd tools/testing/selftests/cachestat
3182+
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/cachestat/{} \;
3183+
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/cachestat/{} \;
3184+
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/cachestat/{} \;
3185+
popd
31803186
%endif
31813187

31823188
###

0 commit comments

Comments
 (0)