mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
feat(ulp): build legacy ULP APIs through CMake v2 shim
This commit is contained in:
@@ -7,6 +7,15 @@ if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${target}/include")
|
||||
list(APPEND includes "${target}/include")
|
||||
endif()
|
||||
|
||||
# TODO(IDF-15986): potentially remove __ULP_BUILD handling from esp_hal_gpspi
|
||||
if(__ULP_BUILD)
|
||||
# LP-core SPI code includes SPI HAL headers from
|
||||
# ulp/lp_core/lp_core/lp_core_spi.c.
|
||||
idf_component_register(INCLUDE_DIRS ${includes}
|
||||
REQUIRES soc hal esp_hal_dma)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_GPSPI_SUPPORTED)
|
||||
list(APPEND srcs
|
||||
"${target}/spi_periph.c"
|
||||
|
||||
Reference in New Issue
Block a user