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 | |
Manish Pandey | d092e8e | 2021-04-22 20:03:19 +0100 | [diff] [blame] | 7 | $(warning Platform ${PLAT} is deprecated. Some of the features might not work as expected) |
| 8 | |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 9 | include plat/arm/css/sgm/sgm-common.mk |
| 10 | |
| 11 | SGM775_BASE= plat/arm/board/sgm775 |
| 12 | |
Madhukar Pappireddy | 6c40dd6 | 2020-03-27 12:52:22 -0500 | [diff] [blame] | 13 | # Add the FDT_SOURCES and options for Dynamic Config |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 14 | FDT_SOURCES += ${SGM775_BASE}/fdts/${PLAT}_fw_config.dts \ |
| 15 | ${SGM775_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 16 | FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
| 17 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
Madhukar Pappireddy | 6c40dd6 | 2020-03-27 12:52:22 -0500 | [diff] [blame] | 18 | |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 19 | # Add the 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,${FW_CONFIG},--fw-config,${FW_CONFIG})) |
Madhukar Pappireddy | 6c40dd6 | 2020-03-27 12:52:22 -0500 | [diff] [blame] | 21 | # 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] | 22 | $(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] | 23 | |
| 24 | PLAT_INCLUDES +=-I${SGM775_BASE}/include/ |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 25 | |
Ambroise Vincent | fa42c9e | 2019-07-04 14:58:45 +0100 | [diff] [blame] | 26 | BL1_SOURCES += ${SGM775_BASE}/sgm775_err.c |
| 27 | |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 28 | BL2_SOURCES += lib/utils/mem_region.c \ |
Ambroise Vincent | fa42c9e | 2019-07-04 14:58:45 +0100 | [diff] [blame] | 29 | ${SGM775_BASE}/sgm775_err.c \ |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 30 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 31 | |
Antonio Nino Diaz | d7da2f8 | 2018-10-10 11:14:44 +0100 | [diff] [blame] | 32 | BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \ |
| 33 | lib/utils/mem_region.c \ |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 34 | plat/arm/common/arm_nor_psci_mem_protect.c |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 35 | |
| 36 | ifeq (${TRUSTED_BOARD_BOOT}, 1) |
| 37 | BL1_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c |
| 38 | BL2_SOURCES += ${SGM775_BASE}/sgm775_trusted_boot.c |
| 39 | endif |