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:
parent
c010f59b8c
commit
de2ba4ff1a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user