diff --git a/dist/templates/kernel.template.spec b/dist/templates/kernel.template.spec index 0717c08cd91a..cb56ea2614ee 100644 --- a/dist/templates/kernel.template.spec +++ b/dist/templates/kernel.template.spec @@ -218,12 +218,17 @@ Source2001: cpupower.config # TK4 Legacy CCISS naming rule Source2002: tlinux_cciss_link_compat.modules +### OC need not compile mlnx commercial drivers +%define with_ofed 0 + +%if %{with_ofed} ### TK4 Legacy MLNX OFED Source3000: MLNX_OFED_SRC-5.8-2.0.3.0.tgz %ifarch x86_64 Source3001: MLNX_OFED_LINUX-5.8-3.0.7.0-rhel7.9-x86_64.tgz Source3002: install.sh %endif +%endif ### TK4 Tools Key Source4000: tools_key.pub @@ -528,8 +533,7 @@ This package provides debug information for the bpftool package. # with_bpftool %endif -#%if %{with_ofed} -%if 0 +%if %{with_ofed} %ifarch x86_64 %package -n mlnx-ofed-dist Summary: Mellonax ofed rpms installation @@ -1720,8 +1724,7 @@ fi # with_bpftool %endif -#%if %{with_ofed} -%if 0 +%if %{with_ofed} %ifarch x86_64 %files -n mlnx-ofed-dist /mlnx/MLNX_OFED_LINUX-5.8-3.0.7.0-rhel7.9-x86_64-ext.%{kernel_unamer}.tgz