1
0
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:
Martine Lenders 2018-07-16 15:14:52 +02:00
parent 446ff9f282
commit ff46796002

View File

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