mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
make: make BUILDRELPATH dependent on selected path
When selecting a directory to build using `-C` with make `BUILD_IN_DOCKER` will fail, because the `BUILDRELPATH` chooses the path `make` is executed in, not the path selected by `-C`. This fixes this bug by replacing `PWD` in the macro's definition with `CURDIR`.
This commit is contained in:
parent
446ff9f282
commit
ff46796002
@ -65,7 +65,7 @@ endif
|
||||
MAKEOVERRIDES += $(foreach v,$(__DIRECTORY_VARIABLES),$(v)=$($(v)))
|
||||
|
||||
# Path to the current directory relative to RIOTPROJECT
|
||||
BUILDRELPATH ?= $(PWD:$(RIOTPROJECT)/%=%)/
|
||||
BUILDRELPATH ?= $(CURDIR:$(RIOTPROJECT)/%=%)/
|
||||
|
||||
# get host operating system
|
||||
OS := $(shell uname)
|
||||
|
Loading…
Reference in New Issue
Block a user