Skip to content

Commit 8cdb2a3

Browse files
committed
Travis: fix gcc arm version to 6
Use download from official website, to have fixed version, rather than latest. The official support for current mbed OS is GCC ARM 6.
1 parent 8b54e8c commit 8cdb2a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cache:
1818
pip: true
1919
directories:
2020
- $HOME/.cache/apt
21+
- $HOME/gcc-arm-none-eabi-6-2017-q2-update
2122

2223
before_install:
2324
- bash -c "$STATUS" pending "Local $NAME testing is in progress"
@@ -160,7 +161,11 @@ matrix:
160161
env: NAME=mbed2-NXP
161162
install:
162163
# Install dependencies
163-
- sudo apt-get install gcc-arm-embedded
164+
- export GCC_DIR=$HOME/gcc-arm-none-eabi-6-2017-q2-update
165+
- export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
166+
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2?revision=2cc92fb5-3e0e-402d-9197-bdfc8224d8a5?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,6-2017-q2-update
167+
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi
168+
- export PATH=$PATH:$GCC_DIR/bin
164169
- pip install -r requirements.txt
165170
# Print versions we use
166171
- arm-none-eabi-gcc --version

0 commit comments

Comments
 (0)