blob: 8df8b1292a1764400bfee12c1d136d20a143b2df [file] [log] [blame]
Nariman Poushin0ece80f2018-02-26 06:52:04 +00001#
2# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include plat/arm/css/sgi/sgi-common.mk
Roberto Vargasb96ee4b2018-08-06 13:35:31 +01008
Chandni Cherukuria3f66132018-08-10 11:17:58 +05309SGI575_BASE = plat/arm/board/sgi575
10
11PLAT_INCLUDES += -I${SGI575_BASE}/include/
12
13SGI_CPU_SOURCES := lib/cpus/aarch64/cortex_a75.S
14
15BL1_SOURCES += ${SGI_CPU_SOURCES}
16
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010017BL2_SOURCES += lib/utils/mem_region.c \
18 plat/arm/common/arm_nor_psci_mem_protect.c
19
Chandni Cherukuria3f66132018-08-10 11:17:58 +053020BL31_SOURCES += ${SGI_CPU_SOURCES} \
21 drivers/cfi/v2m/v2m_flash.c \
Antonio Nino Diazd7da2f82018-10-10 11:14:44 +010022 lib/utils/mem_region.c \
Roberto Vargasb96ee4b2018-08-06 13:35:31 +010023 plat/arm/common/arm_nor_psci_mem_protect.c
Chandni Cherukuri22a8fbc2018-09-04 14:46:49 +053024
25# Add the FDT_SOURCES and options for Dynamic Config
26FDT_SOURCES += ${SGI575_BASE}/fdts/${PLAT}_tb_fw_config.dts
27TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
28
29# Add the TB_FW_CONFIG to FIP and specify the same to certtool
30$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
31
32FDT_SOURCES += ${SGI575_BASE}/fdts/${PLAT}.dts
33HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb
34
35# Add the HW_CONFIG to FIP and specify the same to certtool
36$(eval $(call TOOL_ADD_PAYLOAD,${HW_CONFIG},--hw-config))