mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
56 lines
1.9 KiB
CMake
56 lines
1.9 KiB
CMake
idf_build_get_property(target IDF_TARGET)
|
|
if(${target} STREQUAL "linux")
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
endif()
|
|
|
|
set(public_include "include")
|
|
set(requires esp_hal_dma esp_hal_cache)
|
|
set(srcs "src/esp_dma_utils.c" "src/gdma_link.c")
|
|
|
|
if(CONFIG_SOC_GDMA_SUPPORTED)
|
|
list(APPEND srcs "src/gdma.c")
|
|
if(CONFIG_SOC_GDMA_SUPPORT_SLEEP_RETENTION AND CONFIG_SOC_PAU_SUPPORTED)
|
|
list(APPEND srcs "src/gdma_sleep.c")
|
|
list(APPEND srcs "src/${target}/gdma_retention.c")
|
|
endif()
|
|
if(CONFIG_SOC_GDMA_SUPPORT_ETM)
|
|
list(APPEND srcs "src/gdma_etm.c")
|
|
endif()
|
|
if(CONFIG_SOC_GDMA_SUPPORT_CRC)
|
|
list(APPEND srcs "src/gdma_crc.c" "src/esp_async_crc.c" "src/async_crc_gdma.c")
|
|
endif()
|
|
endif()
|
|
|
|
if(CONFIG_SOC_ASYNC_MEMCPY_SUPPORTED)
|
|
list(APPEND srcs "src/esp_async_memcpy.c")
|
|
if(CONFIG_SOC_GDMA_SUPPORTED)
|
|
list(APPEND srcs "src/async_memcpy_gdma.c")
|
|
endif() # CONFIG_SOC_GDMA_SUPPORTED
|
|
if(CONFIG_SOC_CP_DMA_SUPPORTED)
|
|
list(APPEND srcs "src/async_memcpy_cp_dma.c")
|
|
endif() # CONFIG_SOC_CP_DMA_SUPPORTED
|
|
if(CONFIG_SOC_DW_GDMA_SUPPORTED)
|
|
list(APPEND srcs "src/async_memcpy_dw_gdma.c")
|
|
endif() # CONFIG_SOC_DW_GDMA_SUPPORTED
|
|
endif() # CONFIG_SOC_ASYNC_MEMCPY_SUPPORTED
|
|
|
|
if(CONFIG_SOC_DW_GDMA_SUPPORTED)
|
|
list(APPEND srcs "src/dw_gdma.c")
|
|
endif()
|
|
|
|
if(CONFIG_SOC_DMA2D_SUPPORTED)
|
|
list(APPEND srcs "src/dma2d.c" "src/esp_async_color_convert.c" "src/async_color_convert_dma2d.c"
|
|
"src/async_memcpy_dma2d.c")
|
|
if(CONFIG_SOC_PAU_SUPPORTED)
|
|
list(APPEND srcs "src/${target}/dma2d_retention.c")
|
|
endif()
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS ${public_include}
|
|
PRIV_INCLUDE_DIRS "src"
|
|
REQUIRES ${requires}
|
|
PRIV_REQUIRES esp_mm efuse esp_mspi
|
|
LDFRAGMENTS "linker.lf"
|
|
)
|