Always use absolute paths with configurable paths variables
This commit is contained in:
parent
d794900386
commit
378b85bfd0
@ -1,11 +1,12 @@
|
|||||||
# set undefined variables
|
# set undefined variables
|
||||||
ifeq ($(strip $(RIOTCPU)),)
|
RIOTBASE ?= $(shell dirname "$(lastword $(MAKEFILE_LIST))")
|
||||||
export RIOTCPU =$(RIOTBASE)/cpu
|
export RIOTBASE := $(abspath $(RIOTBASE))
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(strip $(RIOTBOARD)),)
|
RIOTCPU ?= $(RIOTBASE)/cpu
|
||||||
export RIOTBOARD =$(RIOTBASE)/boards
|
export RIOTCPU := $(abspath $(RIOTCPU))
|
||||||
endif
|
|
||||||
|
RIOTBOARD ?= $(RIOTBASE)/boards
|
||||||
|
export RIOTBOARD := $(abspath $(RIOTBOARD))
|
||||||
|
|
||||||
ifeq ($(strip $(MCU)),)
|
ifeq ($(strip $(MCU)),)
|
||||||
MCU = $(CPU)
|
MCU = $(CPU)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user