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
@@ -6,6 +6,15 @@ endif()
set(srcs)
set(public_include "include" "${target}/include")
# TODO(IDF-15992): potentially remove __ULP_BUILD handling from esp_hal_rtc_timer
if(__ULP_BUILD)
# LP-core timer shared code includes hal/rtc_timer_ll.h from
# ulp/lp_core/shared/ulp_lp_core_lp_timer_shared.c.
idf_component_register(INCLUDE_DIRS ${public_include}
REQUIRES soc hal esp_rom)
return()
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
REQUIRES soc hal esp_rom)