blob: f8df1a7deb03aa9a573f4c3d23c967e3d5d6bf31 [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
Manish Pandeyd092e8e2021-04-22 20:03:19 +01007$(warning Platform ${PLAT} is deprecated. Some of the features might not work as expected)
8
Nariman Poushinc703f902018-03-07 10:29:57 +00009include plat/arm/css/sgm/sgm-common.mk
10
11SGM775_BASE= plat/arm/board/sgm775
12
Madhukar Pappireddy6c40dd62020-03-27 12:52:22 -050013# Add the FDT_SOURCES and options for Dynamic Config
Manish V Badarkhe64616a52020-05-31 08:53:40 +010014FDT_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
Madhukar Pappireddy6c40dd62020-03-27 12:52:22 -050018
Manish V Badarkhe64616a52020-05-31 08:53:40 +010019# Add the FW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +010020$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG}))
Madhukar Pappireddy6c40dd62020-03-27 12:52:22 -050021# Add the TB_FW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +010022$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG}))
Nariman Poushinc703f902018-03-07 10:29:57 +000023
24PLAT_INCLUDES +=-I${SGM775_BASE}/include/
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010025
Ambroise Vincentfa42c9e2019-07-04 14:58:45 +010026BL1_SOURCES += ${SGM775_BASE}/sgm775_err.c
27
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010028BL2_SOURCES += lib/utils/mem_region.c \
Ambroise Vincentfa42c9e2019-07-04 14:58:45 +010029 ${SGM775_BASE}/sgm775_err.c \
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010030 plat/arm/common/arm_nor_psci_mem_protect.c
31
Antonio Nino Diazd7da2f82018-10-10 11:14:44 +010032BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \
33 lib/utils/mem_region.c \
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010034 plat/arm/common/arm_nor_psci_mem_protect.c
Max Shvetsov06dba292019-12-06 11:50:12 +000035
36ifeq (${TRUSTED_BOARD_BOOT}, 1)
37BL1_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c
38BL2_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c
39endif