mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 03:06:38 +00:00
chore: make use of 'uname -m' to detect host on GNU/Linux
replace uname -p with uname -m to detect HOST_ARCH on HOST_PLATFORM = linux
This commit is contained in:
parent
063fde1a02
commit
003d937a6e
4
Makefile
4
Makefile
@ -66,10 +66,10 @@ else
|
|||||||
ifeq ($(shell uname -s),Linux)
|
ifeq ($(shell uname -s),Linux)
|
||||||
HOST_PLATFORM = linux
|
HOST_PLATFORM = linux
|
||||||
|
|
||||||
ifeq ($(shell uname -p),x86_64)
|
ifeq ($(shell uname -m),x86_64)
|
||||||
HOST_ARCH = x64
|
HOST_ARCH = x64
|
||||||
endif
|
endif
|
||||||
ifneq ($(filter %86,$(shell uname -p)),)
|
ifneq ($(filter %86,$(shell uname -m)),)
|
||||||
HOST_ARCH = x86
|
HOST_ARCH = x86
|
||||||
endif
|
endif
|
||||||
ifeq ($(shell uname -m),armv7l)
|
ifeq ($(shell uname -m),armv7l)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user