1# 2# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7$(warning Platform ${PLAT} is deprecated. Some of the features might not work as expected) 8 9include plat/arm/css/sgm/sgm-common.mk 10 11SGM775_BASE= plat/arm/board/sgm775 12 13# Add the FDT_SOURCES and options for Dynamic Config 14FDT_SOURCES += ${SGM775_BASE}/fdts/${PLAT}_fw_config.dts \ 15 ${SGM775_BASE}/fdts/${PLAT}_tb_fw_config.dts 16FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb 17TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb 18 19# Add the FW_CONFIG to FIP and specify the same to certtool 20$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG})) 21# Add the TB_FW_CONFIG to FIP and specify the same to certtool 22$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG})) 23 24PLAT_INCLUDES +=-I${SGM775_BASE}/include/ 25 26BL1_SOURCES += ${SGM775_BASE}/sgm775_err.c 27 28BL2_SOURCES += lib/utils/mem_region.c \ 29 ${SGM775_BASE}/sgm775_err.c \ 30 plat/arm/common/arm_nor_psci_mem_protect.c 31 32BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \ 33 lib/utils/mem_region.c \ 34 plat/arm/common/arm_nor_psci_mem_protect.c 35 36ifeq (${TRUSTED_BOARD_BOOT}, 1) 37BL1_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c 38BL2_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c 39endif 40