blob: 57edb923df3ecbe085ee0feabcf3f9c6df773931 [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
12FDT_SOURCES += ${SGM775_BASE}/fdts/${PLAT}_fw_config.dts
13TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb
14
15# Add the TB_FW_CONFIG to FIP and specify the same to certtool
16$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
Nariman Poushinc703f902018-03-07 10:29:57 +000017
18PLAT_INCLUDES +=-I${SGM775_BASE}/include/
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010019
Ambroise Vincentfa42c9e2019-07-04 14:58:45 +010020BL1_SOURCES += ${SGM775_BASE}/sgm775_err.c
21
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010022BL2_SOURCES += lib/utils/mem_region.c \
Ambroise Vincentfa42c9e2019-07-04 14:58:45 +010023 ${SGM775_BASE}/sgm775_err.c \
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010024 plat/arm/common/arm_nor_psci_mem_protect.c
25
Antonio Nino Diazd7da2f82018-10-10 11:14:44 +010026BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \
27 lib/utils/mem_region.c \
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010028 plat/arm/common/arm_nor_psci_mem_protect.c
Max Shvetsov06dba292019-12-06 11:50:12 +000029
30ifeq (${TRUSTED_BOARD_BOOT}, 1)
31BL1_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c
32BL2_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c
33endif