aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2019-11-14 20:49:37 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2019-11-14 20:49:37 +0200
commitb4d7833e5c2602b1c42c662e29421fd7d35875bf (patch)
tree43f89946443b208c7c9f62d3145895037c2ba40a
parent53505f27d37881a14a18f6a555bf7f601060311c (diff)
downloadconfigs-b4d7833e5c2602b1c42c662e29421fd7d35875bf.tar.gz
zephyr-upstream: When uncompressing gnuarmemb, use per-process tmp dir
This job is matrix, so there will be parallel downloads and archive extractions, protect one from another. Change-Id: Id5e29cbb81a7a3ce817b8f4824797d42eb8e0ead Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
-rwxr-xr-xzephyr-upstream/builders.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/zephyr-upstream/builders.sh b/zephyr-upstream/builders.sh
index 2a7ef7fc0..088884dd5 100755
--- a/zephyr-upstream/builders.sh
+++ b/zephyr-upstream/builders.sh
@@ -57,10 +57,10 @@ install_arm_toolchain()
test -d ${GNUARMEMB_TOOLCHAIN_PATH} && return 0
wget "${GNUARMEMB_TOOLCHAIN_URL}"
top=$(dirname ${GNUARMEMB_TOOLCHAIN_PATH})
- rm -rf ${top}/_tmp
- mkdir -p ${top}/_tmp
- tar -C ${top}/_tmp -xaf $(basename ${GNUARMEMB_TOOLCHAIN_URL})
- mv ${top}/_tmp/$(basename ${GNUARMEMB_TOOLCHAIN_PATH}) ${top}
+ rm -rf ${top}/_tmp.$$
+ mkdir -p ${top}/_tmp.$$
+ tar -C ${top}/_tmp.$$ -xaf $(basename ${GNUARMEMB_TOOLCHAIN_URL})
+ mv ${top}/_tmp.$$/$(basename ${GNUARMEMB_TOOLCHAIN_PATH}) ${top}
}
install_arm_toolchain