forked from roboterclubaachen/xpcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.dep.sh
More file actions
28 lines (27 loc) · 1.01 KB
/
.travis.dep.sh
File metadata and controls
28 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Preparing the cache
if [ ! -f "$HOME/cache/avr-gcc.tar.bz2" ]; then
echo "Downloading AVR toolchain..."
(cd $HOME/cache && wget -q http://box.xpcc.io/avr-gcc.tar.bz2) &
fi
if [ ! -f "$HOME/cache/cortex-m.tar.bz2" ]; then
echo "Downloading Cortex-M toolchain..."
(cd $HOME/cache && wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 -O cortex-m.tar.bz2) &
fi
if [ ! -f "$HOME/cache/boost.tar.bz2" ]; then
echo "Downloading libboost package..."
(cd $HOME/cache && wget -q http://box.xpcc.io/boost.tar.bz2) &
fi
# wait for all downloads to finish
wait
echo "Downloads done."
# unzip all toolchains
mkdir $HOME/toolchain
echo "Expanding AVR toolchain..."
(cd $HOME/toolchain && tar -xjf $HOME/cache/avr-gcc.tar.bz2) &
echo "Expanding Cortex-M toolchain..."
(cd $HOME/toolchain && tar -xjf $HOME/cache/cortex-m.tar.bz2) &
echo "Expanding boost package..."
(cd $HOME/toolchain && tar -xjf $HOME/cache/boost.tar.bz2) &
# synchronize
wait
echo "Expanding done."