1# 2# Copyright 2020 NXP 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#----------------------------------------------------------------------------- 7ifeq (${DDR_FIP_IO_STORAGE_ADDED},) 8 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 13DDR_FIP_IO_STORAGE_ADDED := 1 14$(eval $(call add_define,CONFIG_DDR_FIP_IMAGE)) 15 16FIP_HANDLER_PATH := ${PLAT_COMMON_PATH}/fip_handler 17FIP_HANDLER_COMMON_PATH := ${FIP_HANDLER_PATH}/common 18DDR_FIP_IO_STORAGE_PATH := ${FIP_HANDLER_PATH}/ddr_fip 19 20PLAT_INCLUDES += -I${FIP_HANDLER_COMMON_PATH}\ 21 -I$(DDR_FIP_IO_STORAGE_PATH) 22 23DDR_FIP_IO_SOURCES += $(DDR_FIP_IO_STORAGE_PATH)/ddr_io_storage.c 24 25$(shell cp tools/nxp/plat_fiptool/plat_fiptool.mk ${PLAT_DIR}) 26 27ifeq (${BL_COMM_DDR_FIP_IO_NEEDED},yes) 28BL_COMMON_SOURCES += ${DDR_FIP_IO_SOURCES} 29else 30ifeq (${BL2_DDR_FIP_IO_NEEDED},yes) 31BL2_SOURCES += ${DDR_FIP_IO_SOURCES} 32endif 33ifeq (${BL31_DDR_FIP_IO_NEEDED},yes) 34BL31_SOURCES += ${DDR_FIP_IO_SOURCES} 35endif 36endif 37endif 38#------------------------------------------------ 39