build system: support for CUSTOM_TARGET_DEPS

This commit is contained in:
Tomasz Gajewski
2021-04-01 00:31:39 +02:00
committed by Norman Feske
parent 99f4b3cd07
commit f3f8d9a6de
3 changed files with 24 additions and 0 deletions

View File

@@ -180,6 +180,11 @@ LINK_ITEMS_BRIEF := $(subst $(LIB_CACHE_DIR),$$libs,$(LINK_ITEMS))
#
$(LINK_ITEMS) $(TARGET): $(HOST_TOOLS)
#
# Trigger build of additional program specific targets
#
$(TARGET): $(CUSTOM_TARGET_DEPS)
LD_CMD += -Wl,--whole-archive -Wl,--start-group
LD_CMD += $(LINK_ITEMS_BRIEF)
LD_CMD += $(EXT_OBJECTS)