platform.mk 1.21 KB
Newer Older
1
#
2
# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
3
4
5
6
7
8
9
10
#
# SPDX-License-Identifier: BSD-3-Clause
#

include plat/arm/css/sgm/sgm-common.mk

SGM775_BASE= plat/arm/board/sgm775

11
# Add the FDT_SOURCES and options for Dynamic Config
12
13
14
15
FDT_SOURCES		+=      ${SGM775_BASE}/fdts/${PLAT}_fw_config.dts	\
				${SGM775_BASE}/fdts/${PLAT}_tb_fw_config.dts
FW_CONFIG		:=      ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb
TB_FW_CONFIG		:=      ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
16

17
18
# Add the FW_CONFIG to FIP and specify the same to certtool
$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config))
19
20
# Add the TB_FW_CONFIG to FIP and specify the same to certtool
$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
21
22

PLAT_INCLUDES +=-I${SGM775_BASE}/include/
23

24
25
BL1_SOURCES		+=	${SGM775_BASE}/sgm775_err.c

26
BL2_SOURCES		+=	lib/utils/mem_region.c                  \
27
				${SGM775_BASE}/sgm775_err.c		\
28
29
				plat/arm/common/arm_nor_psci_mem_protect.c

30
31
BL31_SOURCES		+=	drivers/cfi/v2m/v2m_flash.c		\
				lib/utils/mem_region.c			\
32
				plat/arm/common/arm_nor_psci_mem_protect.c
33
34
35
36
37

ifeq (${TRUSTED_BOARD_BOOT}, 1)
BL1_SOURCES		+=	${SGM775_BASE}/sgm775_trusted_boot.c
BL2_SOURCES		+=	${SGM775_BASE}/sgm775_trusted_boot.c
endif