CI: test mips-unknown-linux-gnu

This commit is contained in:
Jorge Aparicio 2016-08-08 22:03:44 -05:00
parent 7e04b20c48
commit edbde8c2ea
3 changed files with 18 additions and 1 deletions

View File

@ -48,6 +48,10 @@ matrix:
apt:
packages:
- gcc-multilib
- env: TARGET=mips-unknown-linux-gnu
os: linux
services: docker
sudo: required
- env: TARGET=powerpc-unknown-linux-gnu
os: linux
dist: trusty

View File

@ -24,12 +24,20 @@ case $TARGET in
export PREFIX=arm-linux-gnueabihf-
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
;;
mips-unknown-linux-gnu)
# NOTE $DOCKER values: 'y' (yes, call docker), 'i' (inside a docker container) or 'n' ("no)
if [[ -z $DOCKER ]]; then
export DOCKER=y
fi
export PREFIX=mips-linux-gnu-
export QEMU=qemu-mips
export QEMU_LD_PREFIX=/usr/mips-linux-gnu
;;
powerpc-unknown-linux-gnu)
export PREFIX=powerpc-linux-gnu-
export QEMU_LD_PREFIX=/usr/powerpc-linux-gnu
;;
powerpc64le-unknown-linux-gnu)
# NOTE $DOCKER values: 'y' (yes, call docker), 'i' (inside a docker container) or 'n' ("no)
if [[ -z $DOCKER ]]; then
export DOCKER=y
fi

View File

@ -12,6 +12,7 @@ install_deps() {
install_qemu() {
case $TARGET in
mips-unknown-linux-gnu |
powerpc64le-unknown-linux-gnu)
apt-get install -y --no-install-recommends \
qemu-user
@ -35,6 +36,10 @@ install_c_toolchain() {
sudo apt-get install -y --no-install-recommends \
gcc-aarch64-linux-gnu libc6-dev-arm64-cross
;;
mips-unknown-linux-gnu)
apt-get install -y --no-install-recommends \
gcc-mips-linux-gnu libc6-dev-mips-cross
;;
powerpc64le-unknown-linux-gnu)
apt-get install -y --no-install-recommends \
gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross