Skip to content

Commit

Permalink
CI: test mips-unknown-linux-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Aug 9, 2016
1 parent 7e04b20 commit edbde8c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion ci/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit edbde8c

Please sign in to comment.