File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,17 @@ set -eEo pipefail
44set +x
55
66SCRIPT_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
1212function 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 && \
You can’t perform that action at this time.
0 commit comments