1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/docker.inc.mk: add DOCKER_APPDIR variable

Prepare for when it can have a different value.
This commit is contained in:
cladmi 2018-09-04 15:07:06 +02:00 committed by Gaëtan Harter
parent a0f25ed47b
commit 378f9fd144
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -84,6 +84,9 @@ DOCKER_OVERRIDE_CMDLINE := $(strip $(DOCKER_OVERRIDE_CMDLINE))
# Overwrite if you want to use `docker` with sudo
DOCKER ?= docker
DOCKER_APPDIR = $(DOCKER_BUILD_ROOT)/riotproject/$(BUILDRELPATH)
# Mounted volumes and exported environment variables
# Add GIT_CACHE_DIR if the directory exists
@ -128,5 +131,5 @@ ETC_LOCALTIME = $(realpath /etc/localtime)
-e 'RIOTPROJECT=$(DOCKER_BUILD_ROOT)/riotproject' \
$(DOCKER_VOLUMES_AND_ENV) \
$(DOCKER_ENVIRONMENT_CMDLINE) \
-w '$(DOCKER_BUILD_ROOT)/riotproject/$(BUILDRELPATH)' \
-w '$(DOCKER_APPDIR)' \
'$(DOCKER_IMAGE)' make $(DOCKER_MAKECMDGOALS) $(DOCKER_OVERRIDE_CMDLINE)