Skip to content

Commit c143090

Browse files
committed
Merge branch 'bugfix/driver_sdmmc_host_disable' into 'master'
driver: disable sdmmc in cmake based on soc_caps Closes IDF-613 See merge request espressif/esp-idf!17069
2 parents e640060 + 01dd2dd commit c143090

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

components/driver/CMakeLists.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ if(CONFIG_SOC_PCNT_SUPPORTED)
5151
list(APPEND srcs "pcnt.c")
5252
endif()
5353

54+
if(CONFIG_SOC_SDMMC_HOST_SUPPORTED)
55+
list(APPEND srcs "sdmmc_transaction.c" "sdmmc_host.c")
56+
endif()
57+
5458

5559
if(${target} STREQUAL "esp32")
56-
# SDMMC and MCPWM are in ESP32 only.
5760
list(APPEND srcs "dac_common.c"
5861
"sdio_slave.c"
59-
"sdmmc_host.c"
6062
"i2s.c"
61-
"sdmmc_transaction.c"
6263
"touch_sensor_common.c"
6364
"esp32/touch_sensor.c"
6465
"esp32/adc.c"
@@ -82,9 +83,7 @@ if(IDF_TARGET STREQUAL "esp32s2")
8283
endif()
8384

8485
if(${target} STREQUAL "esp32s3")
85-
list(APPEND srcs "sdmmc_host.c"
86-
"sdmmc_transaction.c"
87-
"usb_serial_jtag.c"
86+
list(APPEND srcs "usb_serial_jtag.c"
8887
"spi_slave_hd.c"
8988
"touch_sensor_common.c"
9089
"esp32s3/touch_sensor.c"

0 commit comments

Comments
 (0)