diff --git a/tool/builddir/build.mk b/tool/builddir/build.mk index a991492f58..8c24d1a372 100644 --- a/tool/builddir/build.mk +++ b/tool/builddir/build.mk @@ -76,6 +76,15 @@ export BOARD REPOSITORIES := $(realpath $(shell echo $(REPOSITORIES))) BASE_DIR := $(realpath $(shell echo $(BASE_DIR))) +define nl + + +endef + +ifneq ($(words $(REPOSITORIES)),$(words $(sort $(REPOSITORIES)))) +$(error detected duplicates in REPOSITORIES $(foreach p,$(REPOSITORIES),$(nl) $(p))) +endif + # # Configure shell program before executing any shell commands. On Ubuntu the # standard shell is dash, which breaks colored output via its built-in echo