CI: test mipsel-unknown-linux-gnu

This commit is contained in:
Jorge Aparicio 2016-08-08 23:07:33 -05:00
parent 9e1f7ba139
commit a4f06b9a8e
3 changed files with 18 additions and 0 deletions

View File

@ -52,6 +52,10 @@ matrix:
os: linux os: linux
services: docker services: docker
sudo: required sudo: required
- env: TARGET=mipsel-unknown-linux-gnu
os: linux
services: docker
sudo: required
- env: TARGET=powerpc-unknown-linux-gnu - env: TARGET=powerpc-unknown-linux-gnu
os: linux os: linux
dist: trusty dist: trusty

View File

@ -33,6 +33,15 @@ case $TARGET in
export QEMU=qemu-mips export QEMU=qemu-mips
export QEMU_LD_PREFIX=/usr/mips-linux-gnu export QEMU_LD_PREFIX=/usr/mips-linux-gnu
;; ;;
mipsel-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=mipsel-linux-gnu-
export QEMU=qemu-mipsel
export QEMU_LD_PREFIX=/usr/mipsel-linux-gnu
;;
powerpc-unknown-linux-gnu) powerpc-unknown-linux-gnu)
export PREFIX=powerpc-linux-gnu- export PREFIX=powerpc-linux-gnu-
export QEMU_LD_PREFIX=/usr/powerpc-linux-gnu export QEMU_LD_PREFIX=/usr/powerpc-linux-gnu

View File

@ -13,6 +13,7 @@ install_deps() {
install_qemu() { install_qemu() {
case $TARGET in case $TARGET in
mips-unknown-linux-gnu | \ mips-unknown-linux-gnu | \
mipsel-unknown-linux-gnu | \
powerpc64-unknown-linux-gnu | \ powerpc64-unknown-linux-gnu | \
powerpc64le-unknown-linux-gnu) powerpc64le-unknown-linux-gnu)
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
@ -41,6 +42,10 @@ install_c_toolchain() {
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
gcc-mips-linux-gnu libc6-dev-mips-cross gcc-mips-linux-gnu libc6-dev-mips-cross
;; ;;
mipsel-unknown-linux-gnu)
apt-get install -y --no-install-recommends \
gcc-mipsel-linux-gnu libc6-dev-mipsel-cross
;;
powerpc64-unknown-linux-gnu) powerpc64-unknown-linux-gnu)
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
gcc-powerpc64-linux-gnu libc6-dev-ppc64-cross gcc-powerpc64-linux-gnu libc6-dev-ppc64-cross