From eb1acfb60c6ddf5b72e9d68625a7ec046e895236 Mon Sep 17 00:00:00 2001 From: Chris Kay Date: Tue, 28 Sep 2021 15:44:37 +0100 Subject: [PATCH] build(bl2): deduplicate sources Deduplicating sources prevents the build system from complaining about multiply-compiled files, which can happen if multiple makefiles depend on a component. This already occurs for BL31. Signed-off-by: Chris Kay Change-Id: Ic9e67932550f07cb9e4d199f68bc46c33a611748 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index a1109643a..814f98b5a 100644 --- a/Makefile +++ b/Makefile @@ -1195,6 +1195,8 @@ ifeq (${BL2_AT_EL3}, 0) FIP_BL2_ARGS := tb-fw endif +BL2_SOURCES := $(sort ${BL2_SOURCES}) + $(if ${BL2}, $(eval $(call TOOL_ADD_IMG,bl2,--${FIP_BL2_ARGS})),\ $(eval $(call MAKE_BL,bl2,${FIP_BL2_ARGS}))) endif