diff --git a/.travis.yml b/.travis.yml index 3ae43eb..e6667a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/ci/env.sh b/ci/env.sh index f1aa4fe..eadaae4 100644 --- a/ci/env.sh +++ b/ci/env.sh @@ -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 diff --git a/ci/install.sh b/ci/install.sh index ae94e94..e306cdf 100644 --- a/ci/install.sh +++ b/ci/install.sh @@ -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