[YUNIKORN-1290] Support aarch64 and arm64 for ARM processors (#88)
The M1 MacBook does not identify as aarch64 but as arm64. Both aarch64
and arm64 are the same and are supported as such.
Closes: #88
Signed-off-by: Wilfred Spiegelenburg <wilfreds@apache.org>
(cherry picked from commit c8f6d0476eb82f05cdff2508a6dd9927c60bff44)
diff --git a/Makefile b/Makefile
index 016534f..d83ee7f 100644
--- a/Makefile
+++ b/Makefile
@@ -49,10 +49,12 @@
DOCKER_ARCH := amd64
else ifeq (i386, $(HOST_ARCH))
DOCKER_ARCH := i386
-else ifeq (aarch64, $(HOST_ARCH))
+else ifneq (,$(filter $(HOST_ARCH), arm64 aarch64))
DOCKER_ARCH := arm64v8
else ifeq (armv7l, $(HOST_ARCH))
DOCKER_ARCH := arm32v7
+else
+DOCKER_ARCH := amd64
endif
WEB_SHA=$$(git rev-parse --short=12 HEAD)