From e9367f76c500c89cc0f6340161b7ff7f77ab8d77 Mon Sep 17 00:00:00 2001 From: Jianping Liu Date: Fri, 30 Aug 2024 16:23:21 +0800 Subject: [PATCH] dist: set with_ofed to 0 in OC8 kernel OC need not compile mlnx commercial drivers. --- dist/templates/kernel.template.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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