CI: test powerpc64-unknown-linux-gnu

This commit is contained in:
Jorge Aparicio 2016-08-08 21:59:31 -05:00
parent 419a2937dc
commit 0c7f25bdbd
3 changed files with 20 additions and 0 deletions

View File

@ -64,6 +64,10 @@ matrix:
- libc6-powerpc-cross - libc6-powerpc-cross
- libc6-dev-powerpc-cross - libc6-dev-powerpc-cross
- qemu-user-static - qemu-user-static
- env: TARGET=powerpc64-unknown-linux-gnu
os: linux
services: docker
sudo: required
- env: TARGET=powerpc64le-unknown-linux-gnu - env: TARGET=powerpc64le-unknown-linux-gnu
os: linux os: linux
services: docker services: docker
@ -80,6 +84,9 @@ matrix:
- env: TARGET=mips-unknown-linux-gnu - env: TARGET=mips-unknown-linux-gnu
os: linux os: linux
# FIXME QEMU blows up # FIXME QEMU blows up
- env: TARGET=powerpc64-unknown-linux-gnu
os: linux
# FIXME QEMU blows up
- env: TARGET=powerpc64le-unknown-linux-gnu - env: TARGET=powerpc64le-unknown-linux-gnu
os: linux os: linux

View File

@ -37,6 +37,14 @@ case $TARGET in
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
;; ;;
powerpc64-unknown-linux-gnu)
if [[ -z $DOCKER ]]; then
export DOCKER=y
fi
export PREFIX=powerpc64-linux-gnu-
export QEMU=qemu-ppc64
export QEMU_LD_PREFIX=/usr/powerpc64-linux-gnu
;;
powerpc64le-unknown-linux-gnu) powerpc64le-unknown-linux-gnu)
if [[ -z $DOCKER ]]; then if [[ -z $DOCKER ]]; then
export DOCKER=y export DOCKER=y

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 | \
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 \
qemu-user qemu-user
@ -40,6 +41,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
;; ;;
powerpc64-unknown-linux-gnu)
apt-get install -y --no-install-recommends \
gcc-powerpc64-linux-gnu libc6-dev-ppc64-cross
;;
powerpc64le-unknown-linux-gnu) powerpc64le-unknown-linux-gnu)
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross