From a5ee239379d0be162c1d08264fb4266191baf4ae Mon Sep 17 00:00:00 2001 From: Nicolas Morey Date: Tue, 3 Oct 2023 19:13:32 +0200 Subject: [PATCH] suse: fix issue on non dma-coherent system [ Upstream commit 7c4620520693ddb84e96493acbb0db3b8d8bb0ec ] modprobe mlx4.conf is not available on non dma-coherent arch. This causes rpmbuild to fail on armv7. Fixes: f5a69fbd96dc ("suse: Change install path for modprobe.d") Signed-off-by: Nicolas Morey --- suse/rdma-core.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/suse/rdma-core.spec b/suse/rdma-core.spec index e3b58c5e0..df09eda34 100644 --- a/suse/rdma-core.spec +++ b/suse/rdma-core.spec @@ -478,7 +478,9 @@ mkdir -p %{buildroot}%{_unitdir} # Port type setup for mlx4 dual port cards install -D -m0644 redhat/rdma.mlx4.sys.modprobe %{buildroot}%{_modprobedir}/50-libmlx4.conf install -D -m0644 redhat/rdma.mlx4.conf %{buildroot}/%{_sysconfdir}/rdma/mlx4.conf +%if 0%{?dma_coherent} chmod 0644 %{buildroot}%{_modprobedir}/mlx4.conf +%endif install -D -m0755 redhat/rdma.mlx4-setup.sh %{buildroot}%{_libexecdir}/mlx4-setup.sh # Dracut file for IB support during boot