summaryrefslogtreecommitdiff
path: root/functions.sh.in
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-07-26 15:20:31 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-08-01 14:28:44 +0300
commitd13decf47b4e5dcb5615e935950c062f97c9376a (patch)
tree2de9848eaf322979eb96317e3338fa33363aed7d /functions.sh.in
parent8c8d741b32a422382aaba90ec10fc6958695842a (diff)
downloadabuild-d13decf47b4e5dcb5615e935950c062f97c9376a.tar.gz
abuild-d13decf47b4e5dcb5615e935950c062f97c9376a.tar.bz2
abuild-d13decf47b4e5dcb5615e935950c062f97c9376a.tar.xz
abuild-d13decf47b4e5dcb5615e935950c062f97c9376a.zip
functions: add s390x triplet and arch
Diffstat (limited to 'functions.sh.in')
-rw-r--r--functions.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.sh.in b/functions.sh.in
index dd57319..7f8b59b 100644
--- a/functions.sh.in
+++ b/functions.sh.in
@@ -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