Skip to content

Commit e72c8b9

Browse files
committed
Merge remote-tracking branch 'upstream/main' into zlukas/connect_json_api_to_test_app
2 parents 18d7223 + 3e6243e commit e72c8b9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/setup_ice_irdma.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ set -eEo pipefail
44
set +x
55

66
SCRIPT_DIR="$(readlink -f "$(dirname -- "${BASH_SOURCE[0]}")")"
7-
WORKING_DIR="${BUILD_DIR:-${REPO_DIR}/build/rdma}"
8-
PERF_DIR="${DRIVERS_DIR}/perftest"
7+
export WORKING_DIR="${BUILD_DIR:-${REPO_DIR}/build/rdma}"
8+
export PERF_DIR="${DRIVERS_DIR}/perftest"
99

1010
. "${SCRIPT_DIR}/common.sh"
1111

1212
function get_and_patch_intel_drivers()
1313
{
1414
log_info "Intel drivers: Starting download and patching actions."
15+
if [[ ! -d "${MTL_DIR}" ]]; then
16+
git_download_strip_unpack "OpenVisualCloud/Media-Transport-Library" "${MTL_VER}" "${MTL_DIR}"
17+
fi
1518
if [ ! -d "${MTL_DIR}/patches/ice_drv/${ICE_VER}/" ]; then
1619
log_error "MTL patch for ICE=v${ICE_VER} could not be found: ${MTL_DIR}/patches/ice_drv/${ICE_VER}"
1720
return 1
@@ -20,9 +23,6 @@ function get_and_patch_intel_drivers()
2023
git_download_strip_unpack "intel/ethernet-linux-iavf" "refs/tags/v${IAVF_VER}" "${IAVF_DIR}" && \
2124
git_download_strip_unpack "intel/ethernet-linux-ice" "refs/tags/v${ICE_VER}" "${ICE_DIR}"
2225

23-
if [[ ! -d "${MTL_DIR}" ]]; then
24-
git_download_strip_unpack "OpenVisualCloud/Media-Transport-Library" "${MTL_VER}" "${MTL_DIR}"
25-
fi
2626
pushd "${ICE_DIR}" && \
2727
patch -p1 -i <(cat "${MTL_DIR}/patches/ice_drv/${ICE_VER}/"*.patch) && \
2828
popd && \

0 commit comments

Comments
 (0)