Skip to content

Commit

Permalink
examples/gcoap: pass throw variables to docker
Browse files Browse the repository at this point in the history
Pass through application configuration environment variables to docker,
so that one can use e.g. `make LWIP_IPV4=1 BUILD_IN_DOCKER=1`.
  • Loading branch information
maribu committed Apr 26, 2024
1 parent 925644e commit c28c668
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/gcoap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ ifeq (1,$(USE_ZEP))
USEMODULE += socket_zep
endif

# Pass through application configuration to the docker container, if
# BUILD_IN_DOCKER=1 is used:
DOCKER_ENV_VARS += LWIP_IPV4
DOCKER_ENV_VARS += LWIP_IPV6
DOCKER_ENV_VARS += USE_ZEP
DOCKER_ENV_VARS += ZEP_PORT_BASE

include $(RIOTBASE)/Makefile.include

# For now this goes after the inclusion of Makefile.include so Kconfig symbols
Expand Down

0 comments on commit c28c668

Please sign in to comment.