Try s390x and sh4 cross builds/tests

This commit is contained in:
Anthony Green
2019-11-06 10:49:04 -05:00
parent d4a28fee72
commit 92f5309def
4 changed files with 21 additions and 5 deletions
+4
View File
@@ -7,6 +7,10 @@ matrix:
include: include:
- os: osx - os: osx
env: HOST=arm-apple-darwin env: HOST=arm-apple-darwin
- os: linux
env: HOST=sh4-linux-gnu MEVAL='export CC="sh4-linux-gnu-gcc-8" && CXX="sh4-linux-gnu-g++-8"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/sh4-linux-gnu
- os: linux
env: HOST=s390x-linux-gnu MEVAL='export CC="s390x-linux-gnu-gcc-8" && CXX="s390x-linux-gnu-g++-8"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/s390x-linux-gnu
- os: linux - os: linux
env: HOST=hppa-linux-gnu MEVAL='export CC="hppa-linux-gnu-gcc-5" && CXX="hppa-linux-gnu-g++-5"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/hppa-linux-gnu env: HOST=hppa-linux-gnu MEVAL='export CC="hppa-linux-gnu-gcc-5" && CXX="hppa-linux-gnu-g++-5"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/hppa-linux-gnu
- os: linux - os: linux
+6
View File
@@ -2,7 +2,13 @@
cd /opt cd /opt
export QEMU_LD_PREFIX=/usr/${HOST}
if ! test "x$HOST" == "x"; then
./configure --host=${HOST} --disable-shared;
else
./configure ./configure
fi
make make
make dist make dist
make check RUNTESTFLAGS="-a $RUNTESTFLAGS" make check RUNTESTFLAGS="-a $RUNTESTFLAGS"
+9
View File
@@ -34,6 +34,12 @@ function build_foreign_linux()
exit $? exit $?
} }
function build_cross_linux()
{
docker run --rm -t -i -v `pwd`:/opt --rm -ti -e HOST="${HOST}" LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" $2 bash -c /opt/.travis/build-in-container.sh
exit $?
}
function build_ios() function build_ios()
{ {
which python which python
@@ -56,6 +62,9 @@ case "$HOST" in
aarch64-linux-gnu| powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu) aarch64-linux-gnu| powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu)
build_cfarm build_cfarm
;; ;;
sh4-linux-gnu | s390x-linux-gnu )
build_cross_linux
;;
*) *)
./autogen.sh ./autogen.sh
build_linux build_linux
+1 -4
View File
@@ -12,15 +12,12 @@ else
case $HOST in case $HOST in
aarch64-linux-gnu | powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu) aarch64-linux-gnu | powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu)
;; ;;
arm32v7-linux-gnu ) arm32v7-linux-gnu | sh4-linux-gnu | s390x-linux-gnu )
sudo apt-get install qemu-user-static sudo apt-get install qemu-user-static
;; ;;
hppa-linux-gnu ) hppa-linux-gnu )
sudo apt-get install -y qemu-user-static g++-5-hppa-linux-gnu sudo apt-get install -y qemu-user-static g++-5-hppa-linux-gnu
;; ;;
s390x-linux-gnu )
sudo apt-get install -y qemu-user-static g++-5-s390x-linux-gnu
;;
i386-pc-linux-gnu) i386-pc-linux-gnu)
sudo apt-get install gcc-multilib g++-multilib; sudo apt-get install gcc-multilib g++-multilib;
;; ;;