blob: a649939de6033f06117602ad226200ff1bc9a553 [file] [log] [blame]
Nariman Poushinc703f902018-03-07 10:29:57 +00001#
Max Shvetsov06dba292019-12-06 11:50:12 +00002# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
Nariman Poushinc703f902018-03-07 10:29:57 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include plat/arm/css/sgm/sgm-common.mk
8
9SGM775_BASE= plat/arm/board/sgm775
10
Madhukar Pappireddy6c40dd62020-03-27 12:52:22 -050011# Add the FDT_SOURCES and options for Dynamic Config
Manish V Badarkhe64616a52020-05-31 08:53:40 +010012FDT_SOURCES += ${SGM775_BASE}/fdts/${PLAT}_fw_config.dts \
13 ${SGM775_BASE}/fdts/${PLAT}_tb_fw_config.dts
14FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb
15TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
Madhukar Pappireddy6c40dd62020-03-27 12:52:22 -050016
Manish V Badarkhe64616a52020-05-31 08:53:40 +010017# Add the FW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +010018$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG}))
Madhukar Pappireddy6c40dd62020-03-27 12:52:22 -050019# Add the TB_FW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +010020$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG}))
Nariman Poushinc703f902018-03-07 10:29:57 +000021
22PLAT_INCLUDES +=-I${SGM775_BASE}/include/
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010023
Ambroise Vincentfa42c9e2019-07-04 14:58:45 +010024BL1_SOURCES += ${SGM775_BASE}/sgm775_err.c
25
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010026BL2_SOURCES += lib/utils/mem_region.c \
Ambroise Vincentfa42c9e2019-07-04 14:58:45 +010027 ${SGM775_BASE}/sgm775_err.c \
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010028 plat/arm/common/arm_nor_psci_mem_protect.c
29
Antonio Nino Diazd7da2f82018-10-10 11:14:44 +010030BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \
31 lib/utils/mem_region.c \
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010032 plat/arm/common/arm_nor_psci_mem_protect.c
Max Shvetsov06dba292019-12-06 11:50:12 +000033
34ifeq (${TRUSTED_BOARD_BOOT}, 1)
35BL1_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c
36BL2_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c
37endif