mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feat(ulp): build ULP full subprojects as CMake v2 children
This commit is contained in:
@@ -7,19 +7,23 @@ if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${target}/include")
|
||||
list(APPEND includes "${target}/include")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_GPIO_PORT GREATER 0)
|
||||
# ULP GPIO helpers include GPIO/RTC IO HAL headers from
|
||||
# ulp/ulp_riscv/ulp_core/include/ulp_riscv_gpio.h and
|
||||
# ulp/lp_core/lp_core/include/ulp_lp_core_gpio.h.
|
||||
# TODO(IDF-15948): potentially remove __ULP_BUILD source exclusions from esp_hal_gpio
|
||||
if(CONFIG_SOC_GPIO_PORT GREATER 0 AND NOT __ULP_BUILD)
|
||||
list(APPEND srcs "gpio_hal.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_RTCIO_PIN_COUNT GREATER 0)
|
||||
if(CONFIG_SOC_RTCIO_PIN_COUNT GREATER 0 AND NOT __ULP_BUILD)
|
||||
list(APPEND srcs "rtc_io_hal.c" "${target}/rtc_io_periph.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_DEDICATED_GPIO_SUPPORTED)
|
||||
if(CONFIG_SOC_DEDICATED_GPIO_SUPPORTED AND NOT __ULP_BUILD)
|
||||
list(APPEND srcs "${target}/dedic_gpio_periph.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_SDM_SUPPORTED)
|
||||
if(CONFIG_SOC_SDM_SUPPORTED AND NOT __ULP_BUILD)
|
||||
list(APPEND srcs "sdm_hal.c" "${target}/sdm_periph.c")
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user