Merge pull request #43 from equinox0815/topic/improve-arch-detection
switch to the output of 'uname -m' to detect ARM based systems
This commit is contained in:
commit
182e3607e7
2
Makefile
2
Makefile
@ -15,7 +15,7 @@ INSTALL_DIR = $(INSTALL) -d
|
|||||||
INSTALL_PROGRAM = $(INSTALL) -m755
|
INSTALL_PROGRAM = $(INSTALL) -m755
|
||||||
INSTALL_DATA = $(INSTALL) -m644
|
INSTALL_DATA = $(INSTALL) -m644
|
||||||
|
|
||||||
IS_ARCH_ARM := $(shell grep -q ARM /proc/cpuinfo; echo $$?)
|
IS_ARCH_ARM := $(shell uname -m | grep -q -E "^(arm|aarch64)"; echo $$?)
|
||||||
ifeq ($(IS_ARCH_ARM), 0)
|
ifeq ($(IS_ARCH_ARM), 0)
|
||||||
ARCH = arm
|
ARCH = arm
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user