dist: delete useless code in kernel.template.spec

Now release-drivers is in three, so it needn't to judge whether
drivers/thirdparty/release-drivers/mlnx is exist.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
This commit is contained in:
Jianping Liu 2024-08-28 14:07:21 +08:00
parent c99409f7fe
commit 3353ce662c
1 changed files with 0 additions and 7 deletions

View File

@ -1164,13 +1164,6 @@ BuildInstMLNXOFED() {
popd
}
if [ ! -e drivers/thirdparty/release-drivers/mlnx ]; then
pwd ; echo "_KernSrc is ${_KernSrc}"
ls -al ${_KernSrc}/drivers/thirdparty/
## Return 0 to using kernel native mlnx drivers.
return 0
fi
pushd drivers/thirdparty/release-drivers/mlnx
MLNX_OFED_VERSION=$(./get_mlnx_info.sh mlnx_version) ; MLNX_OFED_TGZ_NAME=$(./get_mlnx_info.sh mlnx_tgz_name)
tar -xzvf $MLNX_OFED_TGZ_NAME