mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-15 15:00:02 +01:00
feat(bootloader): add the possibility to ignore extra components
This commit is contained in:
@@ -311,10 +311,11 @@ function(__project_init components_var test_components_var)
|
||||
if(EXISTS ${component_dir}/CMakeLists.txt)
|
||||
idf_build_component(${component_dir})
|
||||
else()
|
||||
idf_build_get_property(exclude_dirs EXTRA_COMPONENT_EXCLUDE_DIRS)
|
||||
# otherwise, check whether the subfolders are potential idf components
|
||||
file(GLOB component_dirs ${component_dir}/*)
|
||||
foreach(component_dir ${component_dirs})
|
||||
if(IS_DIRECTORY ${component_dir})
|
||||
if(IS_DIRECTORY ${component_dir} AND NOT ${component_dir} IN_LIST exclude_dirs)
|
||||
__component_dir_quick_check(is_component ${component_dir})
|
||||
if(is_component)
|
||||
idf_build_component(${component_dir})
|
||||
|
||||
Reference in New Issue
Block a user