compiler-builtins-zynq/ci/env.sh

66 lines
2.0 KiB
Bash
Raw Normal View History

2016-08-08 05:55:30 +08:00
case $TRAVIS_OS_NAME in
linux)
export HOST=x86_64-unknown-linux-gnu
2016-08-08 06:29:31 +08:00
export NM=nm
export OBJDUMP=objdump
2016-08-08 05:55:30 +08:00
;;
osx)
export HOST=x86_64-apple-darwin
2016-08-08 06:29:31 +08:00
export NM=gnm
export OBJDUMP=gobjdump
2016-08-08 05:55:30 +08:00
;;
esac
case $TARGET in
aarch64-unknown-linux-gnu)
export PREFIX=aarch64-linux-gnu-
export QEMU_LD_PREFIX=/usr/aarch64-linux-gnu
;;
arm*-unknown-linux-gnueabi)
export PREFIX=arm-linux-gnueabi-
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabi
;;
arm*-unknown-linux-gnueabihf)
export PREFIX=arm-linux-gnueabihf-
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
;;
2016-08-09 11:03:44 +08:00
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
;;
2016-08-09 12:07:33 +08:00
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
;;
2016-08-09 08:31:37 +08:00
powerpc-unknown-linux-gnu)
export PREFIX=powerpc-linux-gnu-
export QEMU_LD_PREFIX=/usr/powerpc-linux-gnu
;;
2016-08-09 10:59:31 +08:00
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
;;
2016-08-09 08:44:55 +08:00
powerpc64le-unknown-linux-gnu)
2016-08-09 09:53:33 +08:00
if [[ -z $DOCKER ]]; then
export DOCKER=y
fi
2016-08-09 08:44:55 +08:00
export PREFIX=powerpc64le-linux-gnu-
2016-08-09 09:04:17 +08:00
export QEMU=qemu-ppc64le
2016-08-09 08:44:55 +08:00
export QEMU_LD_PREFIX=/usr/powerpc64le-linux-gnu
;;
2016-08-08 05:55:30 +08:00
esac