Unverified Commit c45965ae authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

functions: Add the SPARC architecture triplets

parent 240ad5ce
......@@ -19,6 +19,8 @@ arch_to_hostspec() {
ppc64) echo "powerpc64-foxkit-linux-musl" ;;
ppc64le) echo "powerpc64le-foxkit-linux-musl" ;;
s390x) echo "s390x-foxkit-linux-musl" ;;
sparc) echo "sparc-foxkit-linux-musl" ;;
sparc64) echo "sparc64-foxkit-linux-musl" ;;
x86) echo "i486-foxkit-linux-musl" ;;
x86_64) echo "x86_64-foxkit-linux-musl" ;;
*) echo "unknown" ;;
......@@ -28,7 +30,7 @@ arch_to_hostspec() {
hostspec_to_arch() {
case "$1" in
aarch64*-*-*-*) echo "aarch64" ;;
arm*-*-*-*eabi) echo "armel" ;;
arm*-*-*-*eabi) echo "armel" ;; # non-hardfloat ARMs
armv6*-*-*-*eabihf) echo "armhf" ;;
armv7*-*-*-*eabihf) echo "armv7" ;;
i486-*-*-*) echo "x86" ;;
......@@ -42,6 +44,8 @@ hostspec_to_arch() {
powerpc64-*-*-*) echo "ppc64" ;;
powerpc64le-*-*-*) echo "ppc64le" ;;
s390x-*-*-*) echo "s390x" ;;
sparc64-*-*-*) echo "sparc64" ;;
sparc*-*-*-*) echo "sparc" ;; # sparc, sparclite, ...
x86_64-*-*-*) echo "x86_64" ;;
*) echo "unknown" ;;
esac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment