zephyr/subsys/sd/CMakeLists.txt
Declan Snyder cad243d59e sd: Changes framework to support MMC
- Adds mmc.c
- Edits sd.c to init and probe MMC
- Adds mmc init to sd_init
- Some functions from sdmmc.c should be in sd_ops because
they can be used by both sdmmc and mmc.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2023-01-14 09:22:22 +01:00

13 lines
337 B
CMake

# SPDX-License-Identifier: Apache-2.0
if (CONFIG_SD_STACK)
zephyr_interface_library_named(SD)
zephyr_library()
zephyr_library_sources(sd.c sd_ops.c)
zephyr_library_sources_ifdef(CONFIG_SDMMC_STACK sdmmc.c)
zephyr_library_sources_ifdef(CONFIG_SDIO_STACK sdio.c)
zephyr_library_sources_ifdef(CONFIG_MMC_STACK mmc.c)
endif()