From: Nico Pache <npa...@redhat.com>

redhat: Fix build for kselftests mm

Upstream commit baa489fabd01 ("selftests/vm: rename selftests/vm to
selftests/mm") has renamed the kselftests/vm folder to kselftests/mm.

Alongside this they changed the build target and output folder names.
Make this change in our spec file so we dont miss out on building
kselftests in the future.

Upstream-status: RHEL-only
Signed-off-by: Nico Pache <npa...@redhat.com>

diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -2511,7 +2511,7 @@ pushd tools/testing/selftests
   force_targets=""
 %endif
 
-%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf vm livepatch net 
net/forwarding net/mptcp netfilter tc-testing memfd" SKIP_TARGETS="" 
$force_targets 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 memfd" SKIP_TARGETS="" 
$force_targets 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.
@@ -2795,11 +2795,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

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2345
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to