summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-27 15:48:44 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-27 15:48:44 +0100
commit658128897c74ff1027274c35c8e57261d260479f (patch)
treef2a416497aee1359d79c3e73ba0348b6d00855f8 /makefile
parent9c2669081c71ab3f592766f7fae794ec0525fad5 (diff)
Fixed platform detection (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile b/makefile
index 71e6458edbc..40c9411a89a 100644
--- a/makefile
+++ b/makefile
@@ -118,12 +118,16 @@ GENIEOS := windows
PLATFORM := x86
else
UNAME := $(shell uname -mps)
+UNAME_M := $(shell uname -m)
GENIEOS := linux
PLATFORM := unknown
-ifeq ($(firstword $(filter x86,$(UNAME))),x86)
+ifneq ($(filter x86_64,$(UNAME_M)),)
PLATFORM := x86
endif
-ifeq ($(firstword $(filter arm,$(UNAME))),arm)
+ifneq ($(filter %86,$(UNAME_M)),)
+PLATFORM := x86
+endif
+ifneq ($(filter arm%,$(UNAME_M)),)
PLATFORM := arm
endif