From de2ba4ff1ae4d24444fb4fe08a029e42696dd271 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Thu, 17 Oct 2019 11:04:31 +0200 Subject: [PATCH] Makefile.include: get OS and OS_ARCH from UNAME --- Makefile.include | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index 3878d92b6b..7a61f22f0c 100644 --- a/Makefile.include +++ b/Makefile.include @@ -103,8 +103,11 @@ CLEAN = $(filter clean, $(MAKECMDGOALS)) include $(RIOTMAKE)/utils/variables.mk include $(RIOTMAKE)/utils/strings.mk -# OS is always needed so use simple variable expansion so only evaluated once -OS := $(shell uname) + +# UNAME is always needed so use simple variable expansion so only evaluated once +UNAME := $(OS -m) +OS = $(word 1, $(UNAME)) +OS_ARCH = $(word 2, $(UNAME)) # set python path, e.g. for tests PYTHONPATH := $(RIOTBASE)/dist/pythonlibs/:$(PYTHONPATH)