functions: add s390x triplet and arch

This commit is contained in:
Timo Teräs 2016-07-26 15:20:31 +00:00
parent 8c8d741b32
commit d13decf47b
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ arch_to_hostspec() {
aarch64) echo "aarch64-alpine-linux-musl" ;;
armhf) echo "armhf-alpine-linux-muslgnueabihf" ;;
armv7) echo "armv7-alpine-linux-musleabihf" ;;
s390x) echo "s390x-alpine-linux-musl" ;;
x86) echo "i586-alpine-linux-musl" ;;
x86_64) echo "x86_64-alpine-linux-musl" ;;
*) echo "unknown" ;;
@ -21,6 +22,7 @@ hostspec_to_arch() {
armv6*-*-*-*eabihf) echo "armhf" ;;
armv7*-*-*-*eabihf) echo "armv7" ;;
i[0-9]86-*-*-*) echo "x86" ;;
s390x-*-*-*) echo "s390x" ;;
x86_64-*-*-*) echo "x86_64" ;;
*) echo "unknown" ;;
esac