summaryrefslogtreecommitdiff
path: root/tcwg-benchmark.sh
diff options
context:
space:
mode:
authorLaurent Alfonsi <laurent.alfonsi@linaro.org>2022-04-21 16:54:13 +0200
committerLaurent Alfonsi <laurent.alfonsi@linaro.org>2022-04-21 17:00:07 +0200
commita9daeb643ebffbc708346141b1324f145bf9766f (patch)
tree2c65e96ffa77e2668c3dbe6852831e8f5700e329 /tcwg-benchmark.sh
parenta8e0f9fc0b329079c21b9dea894588f8d2245000 (diff)
tcwg-benchmark: Create toolchain dir if not existing on bmk board
Change-Id: I925a4b5bb901fb4a32613b1f6ffa370ee9056768
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-xtcwg-benchmark.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index 77921a20..145791a2 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -215,6 +215,7 @@ case "$toolchain_url" in
ccprefix=$(echo "$ccpath" | sed -e "s/$ccname\$//")
# Copy toolchain to the build container.
+ ssh -p$build_container_port $build_container_host mkdir -p "$toolchaindir"
rsync -a --delete -e "ssh -p$build_container_port" "$toolchaindir/" "$build_container_host:$toolchaindir/"
if [ x"$builder" != x"bmk_board" ]; then
ccprefix="$build_container_host:$build_container_port:$ccprefix"
@@ -229,6 +230,7 @@ case "$sysroot" in
"http://"*|"https://"*)
sysrootdir=$(untar_url "$sysroot" "$WORKSPACE" "--strip-components 1")
# Copy toolchain to the build container.
+ ssh -p$build_container_port $build_container_host mkdir -p "$sysrootdir"
rsync -a --delete -e "ssh -p$build_container_port" "$sysrootdir/" "$build_container_host:$sysrootdir/"
sysroot="$build_container_host:$build_container_port:$sysrootdir"
;;