Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 1 | # |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 2 | # Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved. |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | include plat/arm/css/sgm/sgm-common.mk |
| 8 | |
| 9 | SGM775_BASE= plat/arm/board/sgm775 |
| 10 | |
Madhukar Pappireddy | 6c40dd6 | 2020-03-27 12:52:22 -0500 | [diff] [blame] | 11 | # Add the FDT_SOURCES and options for Dynamic Config |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 12 | FDT_SOURCES += ${SGM775_BASE}/fdts/${PLAT}_fw_config.dts \ |
| 13 | ${SGM775_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 14 | FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
| 15 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
Madhukar Pappireddy | 6c40dd6 | 2020-03-27 12:52:22 -0500 | [diff] [blame] | 16 | |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 17 | # Add the FW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 18 | $(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG})) |
Madhukar Pappireddy | 6c40dd6 | 2020-03-27 12:52:22 -0500 | [diff] [blame] | 19 | # Add the TB_FW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 20 | $(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG})) |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 21 | |
| 22 | PLAT_INCLUDES +=-I${SGM775_BASE}/include/ |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 23 | |
Ambroise Vincent | fa42c9e | 2019-07-04 14:58:45 +0100 | [diff] [blame] | 24 | BL1_SOURCES += ${SGM775_BASE}/sgm775_err.c |
| 25 | |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 26 | BL2_SOURCES += lib/utils/mem_region.c \ |
Ambroise Vincent | fa42c9e | 2019-07-04 14:58:45 +0100 | [diff] [blame] | 27 | ${SGM775_BASE}/sgm775_err.c \ |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 28 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 29 | |
Antonio Nino Diaz | d7da2f8 | 2018-10-10 11:14:44 +0100 | [diff] [blame] | 30 | BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \ |
| 31 | lib/utils/mem_region.c \ |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 32 | plat/arm/common/arm_nor_psci_mem_protect.c |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 33 | |
| 34 | ifeq (${TRUSTED_BOARD_BOOT}, 1) |
| 35 | BL1_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c |
| 36 | BL2_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c |
| 37 | endif |