From a9891c9361b5e9605682cf86388d56521b75fc03 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Mon, 28 Aug 2017 21:52:53 +0300 Subject: [PATCH] compat-rdma.spec: Fixed QED firmware installation Signed-off-by: Vladimir Sokolovsky --- compat-rdma.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compat-rdma.spec b/compat-rdma.spec index ac3582b..7dae33d 100755 --- a/compat-rdma.spec +++ b/compat-rdma.spec @@ -253,7 +253,8 @@ install -D -m 0644 $RPM_BUILD_DIR/%{_name}-%{_version}/docs/lustre-phi.txt $RPM_ %if %{build_compat_rdma_firmware} %if %{build_qedr} -install -D -m 0755 $RPM_BUILD_DIR/%{_name}-%{_version}/linux-firmware/qed/* /lib/firmware/qed/ +install -d $RPM_BUILD_ROOT/lib/firmware/qed +install -D -m 0755 $RPM_BUILD_DIR/%{_name}-%{_version}/linux-firmware/qed/* $RPM_BUILD_ROOT/lib/firmware/qed/ %endif %endif @@ -450,6 +451,11 @@ fi /sbin/connectx_port_config %config(noreplace) %{RDMA_CONF_DIR}/connectx.conf %endif +%if %{build_compat_rdma_firmware} +%if %{build_qedr} +/lib/firmware/qed/* +%endif +%endif %files -n compat-rdma-devel %defattr(-,root,root,-) -- 2.46.0