2024-04-08 08:08:23 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2023-11-10 02:52:25 -05:00
|
|
|
set(srcs)
|
|
|
|
|
|
|
|
set(public_include "include")
|
|
|
|
|
|
|
|
# SDMMC related source files
|
|
|
|
if(CONFIG_SOC_SDMMC_HOST_SUPPORTED)
|
|
|
|
list(APPEND srcs "src/sdmmc_transaction.c"
|
|
|
|
"src/sdmmc_host.c")
|
|
|
|
endif()
|
|
|
|
|
2024-04-08 08:08:23 -04:00
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
set(requires "")
|
|
|
|
set(priv_requires esp_timer)
|
|
|
|
else()
|
|
|
|
set(requires sdmmc esp_driver_gpio)
|
|
|
|
set(priv_requires esp_timer esp_pm esp_mm)
|
|
|
|
endif()
|
|
|
|
|
2023-11-10 02:52:25 -05:00
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS ${public_include}
|
2024-04-08 08:08:23 -04:00
|
|
|
REQUIRES "${requires}"
|
|
|
|
PRIV_REQUIRES "${priv_requires}"
|
2023-11-10 02:52:25 -05:00
|
|
|
)
|