2018-08-19 15:30:59 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
if [ "$TRAVIS_OS_NAME" != linux ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
|
|
|
# needed to build deb packages
|
|
|
|
sudo apt-get install -y fakeroot
|
|
|
|
|
|
|
|
# needed for i686 linux gnu target
|
|
|
|
if [[ $TARGET == i686-unknown-linux-gnu ]]; then
|
|
|
|
sudo apt-get install -y gcc-multilib
|
|
|
|
fi
|
|
|
|
|
|
|
|
# needed for cross-compiling for arm
|
2018-11-03 10:58:54 +01:00
|
|
|
if [[ $TARGET == arm-unknown-linux-* ]]; then
|
2018-08-19 15:30:59 +02:00
|
|
|
sudo apt-get install -y \
|
|
|
|
gcc-4.8-arm-linux-gnueabihf \
|
|
|
|
binutils-arm-linux-gnueabihf \
|
|
|
|
libc6-armhf-cross \
|
|
|
|
libc6-dev-armhf-cross
|
|
|
|
fi
|