ifc_nand.mk 537 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Copyright 2022 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. ifeq (${NAND_ADDED},)
  7. NAND_ADDED := 1
  8. NAND_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/ifc/nand
  9. NAND_SOURCES := $(NAND_DRIVERS_PATH)/ifc_nand.c \
  10. drivers/io/io_block.c
  11. PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/ifc
  12. ifeq (${BL_COMM_IFC_NAND_NEEDED},yes)
  13. BL_COMMON_SOURCES += ${NAND_SOURCES}
  14. else
  15. ifeq (${BL2_IFC_NAND_NEEDED},yes)
  16. BL2_SOURCES += ${NAND_SOURCES}
  17. endif
  18. ifeq (${BL31_IFC_NAND_NEEDED},yes)
  19. BL31_SOURCES += ${NAND_SOURCES}
  20. endif
  21. endif
  22. endif