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

Makefile.docker: Pass TOOLCHAIN variable to Docker container

This commit is contained in:
Joakim Gebart 2015-07-21 11:31:17 +02:00
parent da74abc8c9
commit 28e89e4933

View File

@ -51,6 +51,7 @@ export DOCKER_ENV_VARS = \
UNDEF \
BUILDTEST_MCU_GROUP \
BUILDTEST_VERBOSE \
TOOLCHAIN \
#
# Find which variables were set using the command line or the environment and
@ -59,9 +60,9 @@ export DOCKER_ENV_VARS = \
# of the environment variables will be overwritten by Makefile.include and their
# origin is changed to "file"
DOCKER_ENVIRONMENT_CMDLINE := $(foreach varname,$(DOCKER_ENV_VARS), \
$(if $(filter environment command,$(origin $(varname))), \
-e '$(varname)=$($(varname))', \
))
$(if $(filter environment command,$(origin $(varname))), \
-e '$(varname)=$(subst ','\'',$($(varname)))', \
))
DOCKER_ENVIRONMENT_CMDLINE := $(strip $(DOCKER_ENVIRONMENT_CMDLINE))
# This will execute `make $(DOCKER_MAKECMDGOALS)` inside a Docker container.