1*eca53ba6SRoland Levillain#!/usr/bin/env bash 2*eca53ba6SRoland Levillain 3*eca53ba6SRoland Levillain# Toolchains for little-endian, 64-bit ARMv8 for GNU/Linux systems 4*eca53ba6SRoland Levillainfunction set_aarch64-linux-gnu() { 5*eca53ba6SRoland Levillain export TARGET=aarch64-linux-gnu 6*eca53ba6SRoland Levillain} 7*eca53ba6SRoland Levillain 8*eca53ba6SRoland Levillain# Toolchains for little-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems 9*eca53ba6SRoland Levillainfunction set_arm-linux-gnueabihf() { 10*eca53ba6SRoland Levillain export TARGET=arm-linux-gnueabihf 11*eca53ba6SRoland Levillain} 12*eca53ba6SRoland Levillain 13*eca53ba6SRoland Levillain# Toolchains for little-endian, 32-bit ARMv8 for GNU/Linux systems 14*eca53ba6SRoland Levillainfunction set_armv8l-linux-gnueabihf() { 15*eca53ba6SRoland Levillain export TARGET=armv8l-linux-gnueabihf 16*eca53ba6SRoland Levillain} 17*eca53ba6SRoland Levillain 18*eca53ba6SRoland Levillain# Toolchains for little-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems 19*eca53ba6SRoland Levillainfunction set_arm-linux-gnueabi() { 20*eca53ba6SRoland Levillain export TARGET=arm-linux-gnueabi 21*eca53ba6SRoland Levillain} 22*eca53ba6SRoland Levillain 23*eca53ba6SRoland Levillain# Toolchains for big-endian, 64-bit ARMv8 for GNU/Linux systems 24*eca53ba6SRoland Levillainfunction set_aarch64_be-linux-gnu() { 25*eca53ba6SRoland Levillain export TARGET=aarch64_be-linux-gnu 26*eca53ba6SRoland Levillain} 27*eca53ba6SRoland Levillain 28*eca53ba6SRoland Levillain# Toolchains for big-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems 29*eca53ba6SRoland Levillainfunction set_armeb-linux-gnueabihf() { 30*eca53ba6SRoland Levillain export TARGET=armeb-linux-gnueabihf 31*eca53ba6SRoland Levillain} 32*eca53ba6SRoland Levillain 33*eca53ba6SRoland Levillain# Toolchains for big-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems 34*eca53ba6SRoland Levillainfunction set_armeb-linux-gnueabi() { 35*eca53ba6SRoland Levillain export TARGET=armeb-linux-gnueabi 36*eca53ba6SRoland Levillain} 37*eca53ba6SRoland Levillain 38*eca53ba6SRoland Levillainfunction set_mips32() { 39*eca53ba6SRoland Levillain export TARGET=mips32 40*eca53ba6SRoland Levillain} 41*eca53ba6SRoland Levillain 42*eca53ba6SRoland Levillainfunction set_mips32el() { 43*eca53ba6SRoland Levillain export TARGET=mips32el 44*eca53ba6SRoland Levillain} 45*eca53ba6SRoland Levillain 46*eca53ba6SRoland Levillainfunction set_mips64() { 47*eca53ba6SRoland Levillain export TARGET=mips64 48*eca53ba6SRoland Levillain} 49*eca53ba6SRoland Levillain 50*eca53ba6SRoland Levillainfunction set_mips64el() { 51*eca53ba6SRoland Levillain export TARGET=mips64el 52*eca53ba6SRoland Levillain} 53*eca53ba6SRoland Levillain 54*eca53ba6SRoland Levillainfunction set_x86_64() { 55*eca53ba6SRoland Levillain export TARGET=x86_64 56*eca53ba6SRoland Levillain} 57*eca53ba6SRoland Levillain 58*eca53ba6SRoland LevillainENVIRONMENTS=" 59*eca53ba6SRoland Levillain set_aarch64-linux-gnu 60*eca53ba6SRoland Levillain set_arm-linux-gnueabihf 61*eca53ba6SRoland Levillain set_armv8l-linux-gnueabihf 62*eca53ba6SRoland Levillain set_arm-linux-gnueabi 63*eca53ba6SRoland Levillain set_aarch64_be-linux-gnu 64*eca53ba6SRoland Levillain set_armeb-linux-gnueabihf 65*eca53ba6SRoland Levillain set_armeb-linux-gnueabi 66*eca53ba6SRoland Levillain set_mips32 67*eca53ba6SRoland Levillain set_mips32el 68*eca53ba6SRoland Levillain set_mips64 69*eca53ba6SRoland Levillain set_mips64el 70*eca53ba6SRoland Levillain set_x86_64 71*eca53ba6SRoland Levillain" 72*eca53ba6SRoland Levillain 73*eca53ba6SRoland Levillainset -e 74*eca53ba6SRoland Levillain 75*eca53ba6SRoland Levillainfor SET_ENVIRONMENT in ${ENVIRONMENTS}; do 76*eca53ba6SRoland Levillain echo "testing ${SET_ENVIRONMENT}" 77*eca53ba6SRoland Levillain ${SET_ENVIRONMENT} 78*eca53ba6SRoland Levillain ./"$(dirname -- "$0")"/run_integration.sh 79*eca53ba6SRoland Levillaindone 80