feat(ulp): build ULP full subprojects as CMake v2 children

This commit is contained in:
Renz Bagaporo
2026-06-29 13:21:02 +09:00
parent 51963a4ec8
commit 7d75f85221
25 changed files with 1082 additions and 253 deletions

View File

@@ -1,12 +1,18 @@
idf_build_get_property(target IDF_TARGET)
if(${target} STREQUAL "linux")
# TODO(IDF-15945): potentially remove __ULP_BUILD handling from esp_common
if(${target} STREQUAL "linux" OR __ULP_BUILD)
# ULP sources include esp_err.h from components/ulp public and shared headers.
set(ldfragments)
else()
set(ldfragments common.lf soc.lf linker.lf)
endif()
set(srcs "src/esp_err_to_name.c")
set(srcs)
if(NOT __ULP_BUILD)
set(srcs "src/esp_err_to_name.c")
endif()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS include