#\r
uname_m = $(shell uname -m)\r
$(info Attempting to detect ARCH from 'uname -m': $(uname_m))\r
- ifeq ($(uname_m),x86_64)\r
+ ifneq (,$(strip $(filter $(uname_m), x86_64 amd64)))\r
ARCH=X64\r
endif\r
ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)\r
ARCH=IA32\r
endif\r
+ ifneq (,$(findstring aarch64,$(uname_m)))\r
+ ARCH=AARCH64\r
+ endif\r
+ ifneq (,$(findstring arm,$(uname_m)))\r
+ ARCH=ARM\r
+ endif\r
ifndef ARCH\r
$(info Could not detected ARCH from uname results)\r
$(error ARCH is not defined!)\r