summaryrefslogtreecommitdiffstats
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-07-27 12:06:56 +0000
commit8508cec612b4a602570d6a4b6e425f600ba68811 (patch)
tree1db896cb43ad5ddc82b0769049097282ea02be32
parent8a38bdd5456741475337f802d26099cbcdd706c1 (diff)
downloadabuild-8508cec612b4a602570d6a4b6e425f600ba68811.tar.bz2
abuild-8508cec612b4a602570d6a4b6e425f600ba68811.tar.xz
functions: add s390x triplet and arch
-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