Commit 94093d9c authored by gajju26's avatar gajju26

Added support for IBM z Systems architecture (s390x)

parent 809f4e1b
...@@ -94,9 +94,11 @@ elif [[ "${machine}" == "i686" ]]; then ...@@ -94,9 +94,11 @@ elif [[ "${machine}" == "i686" ]]; then
arch="386" arch="386"
elif [[ "${machine}" == "arm*" ]]; then elif [[ "${machine}" == "arm*" ]]; then
arch="arm" arch="arm"
elif [[ "${machine}" == "s390x*" ]]; then
arch="s390x"
else else
echo "Unknown, unsupported architecture (${machine})." echo "Unknown, unsupported architecture (${machine})."
echo "Supported architectures x86_64, i686, arm*" echo "Supported architectures x86_64, i686, arm, s390x."
echo "Bailing out." echo "Bailing out."
exit 3 exit 3
fi fi
......
...@@ -70,8 +70,11 @@ case "$(uname -m)" in ...@@ -70,8 +70,11 @@ case "$(uname -m)" in
i?86*) i?86*)
host_arch=386 host_arch=386
;; ;;
s390x*)
host_arch=s390x
;;
*) *)
echo "Unsupported host arch. Must be x86_64, 386 or arm." >&2 echo "Unsupported host arch. Must be x86_64, 386, arm or s390x." >&2
exit 1 exit 1
;; ;;
esac esac
......
...@@ -150,8 +150,11 @@ kube::util::host_platform() { ...@@ -150,8 +150,11 @@ kube::util::host_platform() {
i?86*) i?86*)
host_arch=x86 host_arch=x86
;; ;;
*) s390x*)
kube::log::error "Unsupported host arch. Must be x86_64, 386 or arm." host_arch=s390x
;;
*)
kube::log::error "Unsupported host arch. Must be x86_64, 386, arm or s390x."
exit 1 exit 1
;; ;;
esac esac
......
...@@ -135,8 +135,11 @@ function detect_binary { ...@@ -135,8 +135,11 @@ function detect_binary {
i?86*) i?86*)
host_arch=x86 host_arch=x86
;; ;;
s390x*)
host_arch=s390x
;;
*) *)
echo "Unsupported host arch. Must be x86_64, 386 or arm." >&2 echo "Unsupported host arch. Must be x86_64, 386, arm or s390x." >&2
exit 1 exit 1
;; ;;
esac 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