1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Makefile.include: get OS and OS_ARCH from UNAME

This commit is contained in:
Francisco Molina 2019-10-17 11:04:31 +02:00
parent c010f59b8c
commit de2ba4ff1a

View File

@ -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)