Skip to content

Commit

Permalink
T6231: update OFED version and fix build script
Browse files Browse the repository at this point in the history
Push OFED to 24.07-0.6.1.0
Replace bash syntax for conditional check with sh syntax in OFED
build script.
  • Loading branch information
RageLtMan committed Aug 24, 2024
1 parent c5c6a13 commit 21c33ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/linux-kernel/build-mellanox-ofed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 21c33ff

Please sign in to comment.