feat(ulp): build legacy ULP APIs through CMake v2 shim

This commit is contained in:
Renz Bagaporo
2026-07-29 13:08:22 +09:00
parent 82b28b2641
commit 288b9a6e00
21 changed files with 465 additions and 46 deletions
+4
View File
@@ -1111,6 +1111,10 @@ function(idf_component_include name)
target_link_options("${component_interface}" INTERFACE
"SHELL:-Wl,-force_load $<TARGET_FILE:${component_real_target}>")
target_link_libraries("${component_interface}" INTERFACE "${component_real_target}")
elseif(linker_type STREQUAL "ULP_FSM")
target_link_options("${component_interface}" INTERFACE
"SHELL:--whole-archive $<TARGET_FILE:${component_real_target}> --no-whole-archive")
target_link_libraries("${component_interface}" INTERFACE "${component_real_target}")
endif()
else()
target_link_libraries("${component_interface}" INTERFACE "${component_real_target}")
+5
View File
@@ -170,6 +170,11 @@ function(__component_validation_run_checks)
# Run validation checks for each component
foreach(component_interface ${component_interfaces})
__idf_component_get_property_unchecked(skip_path_ownership_validation ${component_interface}
__SKIP_COMPONENT_PATH_OWNERSHIP_VALIDATION)
if(skip_path_ownership_validation)
continue()
endif()
__component_validation_check_sources(${component_interface})
__component_validation_check_include_dirs(${component_interface})
endforeach()