mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Currently, cmakev2 evaluates each component using add_subdirectory with the EXCLUDE_FROM_ALL option. The intention was to exclude all components from being built by default unless they are explicitly linked to an executable based on dependencies. This approach aims to avoid building components that are included but not actually linked to the executable. However, this has the side effect of preventing components from adding their custom targets to the "all" target, which is used, for example, by esp_phy. Generally, we should not restrict components from adding targets to "all". Since components are only included if explicitly requested by default, removing the EXCLUDE_FROM_ALL option should be acceptable. The downside is that if IDF_INCLUDE_ALL_COMPONENTS is set and the user runs `idf.py build`, all components will be built, even if they are not linked to the executable. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>