sd_mmc.mk 500 B

1234567891011121314151617181920212223242526
  1. #
  2. # Copyright 2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. ifeq (${ADD_SD_MMC},)
  7. ADD_SD_MMC := 1
  8. SD_MMC_BOOT_SOURCES += ${PLAT_DRIVERS_PATH}/sd/sd_mmc.c \
  9. drivers/io/io_block.c
  10. PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sd
  11. ifeq (${BL_COMM_SD_MMC_NEEDED},yes)
  12. BL_COMMON_SOURCES += ${SD_MMC_BOOT_SOURCES}
  13. else
  14. ifeq (${BL2_SD_MMC_NEEDED},yes)
  15. BL2_SOURCES += ${SD_MMC_BOOT_SOURCES}
  16. endif
  17. ifeq (${BL3_SD_MMC_NEEDED},yes)
  18. BL31_SOURCES += ${SD_MMC_BOOT_SOURCES}
  19. endif
  20. endif
  21. endif