Merge pull request #19 from japaric/ppc64

CI: test powerpc64-unknown-linux-gnu
This commit is contained in:
Jorge Aparicio 2016-08-08 23:24:13 -05:00 committed by GitHub
commit 9e1f7ba139
3 changed files with 20 additions and 0 deletions

View File

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

View File

@ -37,6 +37,14 @@ case $TARGET in
export PREFIX=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)
if [[ -z $DOCKER ]]; then
export DOCKER=y

View File

@ -13,6 +13,7 @@ install_deps() {
install_qemu() {
case $TARGET in
mips-unknown-linux-gnu | \
powerpc64-unknown-linux-gnu | \
powerpc64le-unknown-linux-gnu)
apt-get install -y --no-install-recommends \
qemu-user
@ -40,6 +41,10 @@ install_c_toolchain() {
apt-get install -y --no-install-recommends \
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)
apt-get install -y --no-install-recommends \
gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross