diff options
author | RageLtMan <rageltman [at] sempervictus> | 2024-08-24 10:51:37 -0400 |
---|---|---|
committer | RageLtMan <rageltman [at] sempervictus> | 2024-08-24 11:03:26 -0400 |
commit | 21c33ff0b8a4e248c5b29c52a8a3ccebd4f3bf9d (patch) | |
tree | 1e6b3cfcd4512a3667cac36ed68ecae763588d5e /packages/linux-kernel | |
parent | c5c6a1347c1533137a68bba8a750dea7e074f1b2 (diff) | |
download | vyos-build-21c33ff0b8a4e248c5b29c52a8a3ccebd4f3bf9d.tar.gz vyos-build-21c33ff0b8a4e248c5b29c52a8a3ccebd4f3bf9d.zip |
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.
Diffstat (limited to 'packages/linux-kernel')
-rwxr-xr-x | packages/linux-kernel/build-mellanox-ofed.sh | 7 |
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 |