|
|
|
@ -1889,7 +1889,7 @@ export BPFTOOL=$(pwd)/tools/bpf/bpftool/bpftool
|
|
|
|
|
pushd tools/testing/selftests
|
|
|
|
|
# We need to install here because we need to call make with ARCH set which
|
|
|
|
|
# doesn't seem possible to do in the install section.
|
|
|
|
|
%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf vm livepatch net net/forwarding net/mptcp netfilter tc-testing" FORCE_TARGETS=1 INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" install
|
|
|
|
|
%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf mm livepatch net net/forwarding net/mptcp netfilter tc-testing" FORCE_TARGETS=1 INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" install
|
|
|
|
|
|
|
|
|
|
# 'make install' for bpf is broken and upstream refuses to fix it.
|
|
|
|
|
# Install the needed files manually.
|
|
|
|
@ -2177,11 +2177,11 @@ find . -type f -executable -exec install -m755 {} %{buildroot}%{_libexecdir}/ksa
|
|
|
|
|
find . -type f ! -executable -exec install -m644 {} %{buildroot}%{_libexecdir}/ksamples/pktgen/{} \;
|
|
|
|
|
popd
|
|
|
|
|
popd
|
|
|
|
|
# install vm selftests
|
|
|
|
|
pushd tools/testing/selftests/vm
|
|
|
|
|
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/vm/{} \;
|
|
|
|
|
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/vm/{} \;
|
|
|
|
|
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/vm/{} \;
|
|
|
|
|
# install mm selftests
|
|
|
|
|
pushd tools/testing/selftests/mm
|
|
|
|
|
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/mm/{} \;
|
|
|
|
|
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/mm/{} \;
|
|
|
|
|
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/mm/{} \;
|
|
|
|
|
popd
|
|
|
|
|
# install drivers/net/mlxsw selftests
|
|
|
|
|
pushd tools/testing/selftests/drivers/net/mlxsw
|
|
|
|
|