build & config: Don't include common components on early expansion

This commit is contained in:
Sergei Silnov
2022-05-11 15:20:01 +02:00
parent 56bb81228c
commit 07827ea362
3 changed files with 9 additions and 4 deletions

View File

@@ -222,6 +222,14 @@ function(__build_expand_requirements component_target)
get_property(reqs TARGET ${component_target} PROPERTY REQUIRES)
get_property(priv_reqs TARGET ${component_target} PROPERTY PRIV_REQUIRES)
__component_get_property(component_name ${component_target} COMPONENT_NAME)
__component_get_property(component_alias ${component_target} COMPONENT_ALIAS)
idf_build_get_property(common_reqs __COMPONENT_REQUIRES_COMMON)
list(APPEND reqs ${common_reqs})
if(reqs)
list(REMOVE_DUPLICATES reqs)
list(REMOVE_ITEM reqs ${component_alias} ${component_name})
endif()
foreach(req ${reqs})
depgraph_add_edge(${component_name} ${req} REQUIRES)