driver: disable sdmmc in cmake based on soc_caps

This commit is contained in:
Ivan Grokhotkov 2022-02-08 21:22:36 +01:00
parent 9bc2dd0b53
commit 01dd2dd45d
No known key found for this signature in database
GPG Key ID: 1E050E141B280628

View File

@ -51,14 +51,15 @@ if(CONFIG_SOC_PCNT_SUPPORTED)
list(APPEND srcs "pcnt.c") list(APPEND srcs "pcnt.c")
endif() endif()
if(CONFIG_SOC_SDMMC_HOST_SUPPORTED)
list(APPEND srcs "sdmmc_transaction.c" "sdmmc_host.c")
endif()
if(${target} STREQUAL "esp32") if(${target} STREQUAL "esp32")
# SDMMC and MCPWM are in ESP32 only.
list(APPEND srcs "dac_common.c" list(APPEND srcs "dac_common.c"
"sdio_slave.c" "sdio_slave.c"
"sdmmc_host.c"
"i2s.c" "i2s.c"
"sdmmc_transaction.c"
"touch_sensor_common.c" "touch_sensor_common.c"
"esp32/touch_sensor.c" "esp32/touch_sensor.c"
"esp32/adc.c" "esp32/adc.c"
@ -82,9 +83,7 @@ if(IDF_TARGET STREQUAL "esp32s2")
endif() endif()
if(${target} STREQUAL "esp32s3") if(${target} STREQUAL "esp32s3")
list(APPEND srcs "sdmmc_host.c" list(APPEND srcs "usb_serial_jtag.c"
"sdmmc_transaction.c"
"usb_serial_jtag.c"
"spi_slave_hd.c" "spi_slave_hd.c"
"touch_sensor_common.c" "touch_sensor_common.c"
"esp32s3/touch_sensor.c" "esp32s3/touch_sensor.c"