mk: prevent duplicates in REPOSITORIES definition

Fixes #3731
This commit is contained in:
Norman Feske 2020-04-22 11:25:58 +02:00
parent 6f6340644b
commit 1459085a4d
1 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,15 @@
## Define global configuration variables
##
#
# Whenever using the 'run/%' rule and the run tool spawns this Makefile again
# when encountering a 'build' step, the build.conf is included a second time,
# with the content taken from the environment variable. We need to reset the
# 'REPOSITORIES' variable to prevent extending this variable twice.
# (see https://github.com/genodelabs/genode/issues/3731)
#
REPOSITORIES :=
-include etc/build.conf
BUILD_BASE_DIR := $(CURDIR)