From 21c33ff0b8a4e248c5b29c52a8a3ccebd4f3bf9d Mon Sep 17 00:00:00 2001 From: RageLtMan Date: Sat, 24 Aug 2024 10:51:37 -0400 Subject: [PATCH] T6231: update OFED version and fix build script Push OFED to 24.07-0.6.1.0 Replace bash syntax for conditional check with sh syntax in OFED build script. --- packages/linux-kernel/build-mellanox-ofed.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/linux-kernel/build-mellanox-ofed.sh b/packages/linux-kernel/build-mellanox-ofed.sh index 0dffcfdb82..51e4d4cafa 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