Skip to content
Snippets Groups Projects
Commit ff467960 authored by Martine Lenders's avatar Martine Lenders
Browse files

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`.
parent 446ff9f2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment