From 2060492cf98e6cd1082c1b4769f52a1c0874c07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se> Date: Tue, 13 Mar 2018 11:58:21 +0100 Subject: [PATCH] bindist: remove APPLICATION_MODULE duplicate Fix APPLICATION_MODULE being duplicated in the command line during link. This error is currently silently ignored by the linker. --- makefiles/bindist.inc.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefiles/bindist.inc.mk b/makefiles/bindist.inc.mk index 783edc9ca7..b8b8510e61 100644 --- a/makefiles/bindist.inc.mk +++ b/makefiles/bindist.inc.mk @@ -1,4 +1,5 @@ -USEMODULE += $(BIN_USEMODULE) +# Avoid including APPLICATION_MODULE twice to prevent multiple definition errors +USEMODULE += $(filter-out $(APPLICATION_MODULE),$(BIN_USEMODULE)) DIST_FILES += $(BIN_USEMODULE:%=bin/$(BOARD)/%.a) -- GitLab