summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-08-26 09:53:58 +0200
committerGitHub <noreply@github.com>2024-08-26 09:53:58 +0200
commitbca5611ef9da4edf9e90d57a53079e5629ad7cc4 (patch)
tree1e6b3cfcd4512a3667cac36ed68ecae763588d5e
parentc5c6a1347c1533137a68bba8a750dea7e074f1b2 (diff)
parent21c33ff0b8a4e248c5b29c52a8a3ccebd4f3bf9d (diff)
downloadvyos-build-bca5611ef9da4edf9e90d57a53079e5629ad7cc4.tar.gz
vyos-build-bca5611ef9da4edf9e90d57a53079e5629ad7cc4.zip
Merge pull request #744 from sempervictus/feature/mlx_update
T6231: update OFED version and fix build script
-rwxr-xr-xpackages/linux-kernel/build-mellanox-ofed.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/linux-kernel/build-mellanox-ofed.sh b/packages/linux-kernel/build-mellanox-ofed.sh
index 0dffcfdb..51e4d4ca 100755
--- a/packages/linux-kernel/build-mellanox-ofed.sh
+++ b/packages/linux-kernel/build-mellanox-ofed.sh
@@ -16,12 +16,13 @@ fi
. ${KERNEL_VAR_FILE}
-url="https://www.mellanox.com/downloads/ofed/MLNX_OFED-24.04-0.6.6.0/MLNX_OFED_SRC-debian-24.04-0.6.6.0.tgz"
+mlxver="24.07-0.6.1.0"
+url="https://www.mellanox.com/downloads/ofed/MLNX_OFED-${mlxver}/MLNX_OFED_SRC-debian-${mlxver}.tgz"
cd ${CWD}
DRIVER_FILE=$(basename ${url} | sed -e s/tar_0/tar/)
-DRIVER_SHA1="003c1c022f9f6558d45750eacc0a64d06cf9cd42"
+DRIVER_SHA1="c64defa8fb38dcbce153adc09834ab5cdcecd791"
DRIVER_DIR="${DRIVER_FILE%.tgz}"
DRIVER_NAME="ofed"
@@ -46,7 +47,7 @@ fi
# Verify integrity
echo "${DRIVER_SHA1} ${DRIVER_FILE}" | sha1sum -c -
-if [[ $? != 0 ]]; then
+if [ $? != 0 ]; then
echo SHA1 checksum missmatch
exit 1
fi