Skip to content

Commit

Permalink
suse: fix issue on non dma-coherent system
Browse files Browse the repository at this point in the history
[ Upstream commit 7c46205 ]

modprobe mlx4.conf is not available on non dma-coherent arch.
This causes rpmbuild to fail on armv7.

Fixes: f5a69fb ("suse: Change install path for modprobe.d")
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
nmorey committed Oct 4, 2023
1 parent 16786db commit c6193eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions suse/rdma-core.spec
Expand Up @@ -465,7 +465,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
Expand Down

0 comments on commit c6193eb

Please sign in to comment.