blob: cf02219fb9713f0fc3f85a5bdbb09d8cd9f19e69 [file] [log] [blame]
Chandni Cherukurif7813232018-09-16 21:06:29 +05301#
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
8
9SGICLARKA_BASE = plat/arm/board/sgiclarka
10
11PLAT_INCLUDES += -I${SGICLARKA_BASE}/include/
12
13SGI_CPU_SOURCES := lib/cpus/aarch64/cortex_ares.S
14
15BL1_SOURCES += ${SGI_CPU_SOURCES}
16
Vijayenthiran Subramaniam22141b62018-10-25 22:20:24 +053017BL2_SOURCES += ${SGICLARKA_BASE}/sgiclarka_security.c \
18 drivers/arm/tzc/tzc_dmc620.c \
19 lib/utils/mem_region.c \
Chandni Cherukurif7813232018-09-16 21:06:29 +053020 plat/arm/common/arm_nor_psci_mem_protect.c
21
22BL31_SOURCES += ${SGI_CPU_SOURCES} \
23 drivers/cfi/v2m/v2m_flash.c \
24 lib/utils/mem_region.c \
25 plat/arm/common/arm_nor_psci_mem_protect.c
26
27# Add the FDT_SOURCES and options for Dynamic Config
28FDT_SOURCES += ${SGICLARKA_BASE}/fdts/${PLAT}_tb_fw_config.dts
29TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
30
31# Add the TB_FW_CONFIG to FIP and specify the same to certtool
32$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
33
34FDT_SOURCES += ${SGICLARKA_BASE}/fdts/${PLAT}.dts
35HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb
36
37# Add the HW_CONFIG to FIP and specify the same to certtool
38$(eval $(call TOOL_ADD_PAYLOAD,${HW_CONFIG},--hw-config))
39
40override CTX_INCLUDE_AARCH32_REGS := 0