dist: set with_ofed to 0 in OC8 kernel

OC need not compile mlnx commercial drivers.
This commit is contained in:
Jianping Liu 2024-08-30 16:23:21 +08:00
parent e5646556fd
commit e9367f76c5
1 changed files with 7 additions and 4 deletions

View File

@ -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