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)