CI: test mips-unknown-linux-gnu
This commit is contained in:
parent
7e04b20c48
commit
edbde8c2ea
|
@ -48,6 +48,10 @@ matrix:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- gcc-multilib
|
- gcc-multilib
|
||||||
|
- env: TARGET=mips-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
|
||||||
|
|
10
ci/env.sh
10
ci/env.sh
|
@ -24,12 +24,20 @@ case $TARGET in
|
||||||
export PREFIX=arm-linux-gnueabihf-
|
export PREFIX=arm-linux-gnueabihf-
|
||||||
export QEMU_LD_PREFIX=/usr/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)
|
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
|
||||||
;;
|
;;
|
||||||
powerpc64le-unknown-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
|
if [[ -z $DOCKER ]]; then
|
||||||
export DOCKER=y
|
export DOCKER=y
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -12,6 +12,7 @@ install_deps() {
|
||||||
|
|
||||||
install_qemu() {
|
install_qemu() {
|
||||||
case $TARGET in
|
case $TARGET in
|
||||||
|
mips-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
|
||||||
|
@ -35,6 +36,10 @@ install_c_toolchain() {
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
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)
|
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
|
||||||
|
|
Loading…
Reference in New Issue