Skip to content

Commit 30aebb7

Browse files
committed
A tiny refactoring of the toolchain fetch helper that makes it also work on macos
1 parent c883e96 commit 30aebb7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

util/install-toolchain.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#!/bin/bash
22
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
3+
4+
if [ `uname` == 'Darwin' ]; then
5+
TOOLCHAIN_ARCH=mac
6+
else
7+
TOOLCHAIN_ARCH=x86_64-linux
8+
fi
9+
TOOLCHAIN_REV=9-2019q4
410
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
512
TOOLCHAINS=$HOME/toolchains
613
TOOLCHAIN_MISSING=0
714
GCC=${TOOLCHAINS}/gcc-arm-embedded/bin/arm-none-eabi-gcc

0 commit comments

Comments
 (0)