We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c883e96 commit 30aebb7Copy full SHA for 30aebb7
1 file changed
util/install-toolchain.sh
@@ -1,7 +1,14 @@
1
#!/bin/bash
2
set -eo pipefail
3
-URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
+
4
+if [ `uname` == 'Darwin' ]; then
5
+TOOLCHAIN_ARCH=mac
6
+else
7
+TOOLCHAIN_ARCH=x86_64-linux
8
+fi
9
+TOOLCHAIN_REV=9-2019q4
10
TOOLCHAIN=gcc-arm-none-eabi-9-2019-q4-major
11
+URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_REV}/${TOOLCHAIN}-${TOOLCHAIN_ARCH}.tar.bz2
12
TOOLCHAINS=$HOME/toolchains
13
TOOLCHAIN_MISSING=0
14
GCC=${TOOLCHAINS}/gcc-arm-embedded/bin/arm-none-eabi-gcc
0 commit comments