ddr_fip_io.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Copyright 2020 NXP
  3. # Copyright (c) 2023, Arm Limited. All rights reserved.
  4. #
  5. # SPDX-License-Identifier: BSD-3-Clause
  6. #
  7. #-----------------------------------------------------------------------------
  8. ifeq (${DDR_FIP_IO_STORAGE_ADDED},)
  9. $(eval $(call add_define, PLAT_DEF_FIP_UUID))
  10. $(eval $(call add_define, PLAT_TBBR_IMG_DEF))
  11. $(eval $(call SET_NXP_MAKE_FLAG,IMG_LOADR_NEEDED,BL2))
  12. DDR_FIP_IO_STORAGE_ADDED := 1
  13. $(eval $(call add_define,CONFIG_DDR_FIP_IMAGE))
  14. FIP_HANDLER_PATH := ${PLAT_COMMON_PATH}/fip_handler
  15. FIP_HANDLER_COMMON_PATH := ${FIP_HANDLER_PATH}/common
  16. DDR_FIP_IO_STORAGE_PATH := ${FIP_HANDLER_PATH}/ddr_fip
  17. PLAT_INCLUDES += -I${FIP_HANDLER_COMMON_PATH}\
  18. -I$(DDR_FIP_IO_STORAGE_PATH)
  19. DDR_FIP_IO_SOURCES += $(DDR_FIP_IO_STORAGE_PATH)/ddr_io_storage.c
  20. ifeq (${BL_COMM_DDR_FIP_IO_NEEDED},yes)
  21. BL_COMMON_SOURCES += ${DDR_FIP_IO_SOURCES}
  22. else
  23. ifeq (${BL2_DDR_FIP_IO_NEEDED},yes)
  24. BL2_SOURCES += ${DDR_FIP_IO_SOURCES}
  25. endif
  26. ifeq (${BL31_DDR_FIP_IO_NEEDED},yes)
  27. BL31_SOURCES += ${DDR_FIP_IO_SOURCES}
  28. endif
  29. endif
  30. endif
  31. #------------------------------------------------