blob: 5dd28b95d87606c36a9915f68034f30b643b4ffc [file] [log] [blame]
laurenw-arm7c7b1982020-10-21 13:34:40 -05001#
2# Copyright (c) 2021, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Only aarch64 ARCH supported for FVP_R
8ARCH := aarch64
9
10# Override to exclude BL2, BL2U, BL31, and BL33 for FVP_R
11override NEED_BL2 := no
12override NEED_BL2U := no
13override NEED_BL31 := no
Manish Pandeye2a6b352021-10-04 13:38:56 +010014NEED_BL32 := no
laurenw-arm56f1e3e2021-03-03 14:19:38 -060015
16override CTX_INCLUDE_AARCH32_REGS := 0
laurenw-arm7c7b1982020-10-21 13:34:40 -050017
Gary Morrison3d7f6542021-01-27 13:08:47 -060018# Use MPU-based memory management:
19XLAT_MPU_LIB_V1 := 1
20
johpow010033b252021-10-11 14:51:11 -050021# FVP R will not have more than 2 clusters so just use CCI interconnect
laurenw-arm7c7b1982020-10-21 13:34:40 -050022FVP_R_INTERCONNECT_SOURCES := drivers/arm/cci/cci.c
johpow010033b252021-10-11 14:51:11 -050023
laurenw-arm7c7b1982020-10-21 13:34:40 -050024
Manish Pandeye2a6b352021-10-04 13:38:56 +010025include plat/arm/board/common/board_common.mk
26include plat/arm/common/arm_common.mk
laurenw-arm7c7b1982020-10-21 13:34:40 -050027
Manish Pandeye2a6b352021-10-04 13:38:56 +010028PLAT_INCLUDES := -Iplat/arm/board/fvp_r/include
laurenw-arm7c7b1982020-10-21 13:34:40 -050029
Manish Pandeye2a6b352021-10-04 13:38:56 +010030FVP_R_BL_COMMON_SOURCES := plat/arm/board/fvp_r/fvp_r_common.c \
Gary Morrison3d7f6542021-01-27 13:08:47 -060031 plat/arm/board/fvp_r/fvp_r_context_mgmt.c \
Manish Pandeye2a6b352021-10-04 13:38:56 +010032 plat/arm/board/fvp_r/fvp_r_debug.S \
laurenw-arm7c7b1982020-10-21 13:34:40 -050033 plat/arm/board/fvp_r/fvp_r_err.c \
Manish Pandeye2a6b352021-10-04 13:38:56 +010034 plat/arm/board/fvp_r/fvp_r_helpers.S \
johpow010033b252021-10-11 14:51:11 -050035 plat/arm/board/fvp_r/fvp_r_misc_helpers.S
Manish Pandeye2a6b352021-10-04 13:38:56 +010036
37FVP_R_BL1_SOURCES := plat/arm/board/fvp_r/fvp_r_bl1_arch_setup.c \
38 plat/arm/board/fvp_r/fvp_r_bl1_setup.c \
laurenw-arm7c7b1982020-10-21 13:34:40 -050039 plat/arm/board/fvp_r/fvp_r_io_storage.c \
Gary Morrison3d7f6542021-01-27 13:08:47 -060040 plat/arm/board/fvp_r/fvp_r_bl1_entrypoint.S \
41 plat/arm/board/fvp_r/fvp_r_bl1_exceptions.S \
Manish Pandeye2a6b352021-10-04 13:38:56 +010042 plat/arm/board/fvp_r/fvp_r_bl1_main.c
43
44FVP_R_CPU_LIBS := lib/cpus/${ARCH}/aem_generic.S
45
46FVP_R_DYNC_CFG_SOURCES := common/fdt_wrappers.c \
johpow010033b252021-10-11 14:51:11 -050047 plat/arm/common/arm_dyn_cfg.c
Manish Pandeye2a6b352021-10-04 13:38:56 +010048
49ifeq (${TRUSTED_BOARD_BOOT},1)
50FVP_R_AUTH_SOURCES := drivers/auth/auth_mod.c \
51 drivers/auth/crypto_mod.c \
52 drivers/auth/img_parser_mod.c \
53 lib/fconf/fconf_tbbr_getter.c \
Manish Pandeye2a6b352021-10-04 13:38:56 +010054 plat/common/tbbr/plat_tbbr.c \
55 drivers/auth/tbbr/tbbr_cot_bl1_r64.c \
56 drivers/auth/tbbr/tbbr_cot_common.c \
57 plat/arm/board/common/board_arm_trusted_boot.c \
58 plat/arm/board/common/rotpk/arm_dev_rotpk.S \
59 plat/arm/board/fvp_r/fvp_r_trusted_boot.c
60
61FVP_R_BL1_SOURCES += ${MBEDTLS_SOURCES} \
62 ${FVP_R_AUTH_SOURCES}
63endif
laurenw-arm7c7b1982020-10-21 13:34:40 -050064
65ifeq (${USE_SP804_TIMER},1)
Manish Pandeye2a6b352021-10-04 13:38:56 +010066FVP_R_BL_COMMON_SOURCES += drivers/arm/sp804/sp804_delay_timer.c
laurenw-arm7c7b1982020-10-21 13:34:40 -050067else
Manish Pandeye2a6b352021-10-04 13:38:56 +010068FVP_R_BL_COMMON_SOURCES += drivers/delay_timer/generic_delay_timer.c
laurenw-arm7c7b1982020-10-21 13:34:40 -050069endif
70
71# Enable Activity Monitor Unit extensions by default
Andre Przywara0b7f1b02023-03-21 13:53:19 +000072ENABLE_FEAT_AMU := 2
laurenw-arm7c7b1982020-10-21 13:34:40 -050073
74ifneq (${ENABLE_STACK_PROTECTOR},0)
Manish Pandeye2a6b352021-10-04 13:38:56 +010075FVP_R_BL_COMMON_SOURCES += plat/arm/board/fvp_r/fvp_r_stack_protector.c
laurenw-arm7c7b1982020-10-21 13:34:40 -050076endif
77
Manish Pandeye2a6b352021-10-04 13:38:56 +010078override BL1_SOURCES := drivers/arm/sp805/sp805.c \
79 drivers/cfi/v2m/v2m_flash.c \
80 drivers/delay_timer/delay_timer.c \
81 drivers/io/io_fip.c \
82 drivers/io/io_memmap.c \
83 drivers/io/io_storage.c \
84 drivers/io/io_semihosting.c \
85 lib/cpus/aarch64/cpu_helpers.S \
Manish Pandeye2a6b352021-10-04 13:38:56 +010086 lib/fconf/fconf_dyn_cfg_getter.c \
87 lib/semihosting/semihosting.c \
88 lib/semihosting/${ARCH}/semihosting_call.S \
89 plat/arm/common/arm_bl1_setup.c \
90 plat/arm/common/arm_err.c \
91 plat/arm/common/arm_io_storage.c \
92 plat/arm/common/fconf/arm_fconf_io.c \
93 plat/common/plat_bl1_common.c \
94 plat/common/aarch64/platform_up_stack.S \
95 ${FVP_R_BL1_SOURCES} \
96 ${FVP_R_BL_COMMON_SOURCES} \
97 ${FVP_R_CPU_LIBS} \
98 ${FVP_R_DYNC_CFG_SOURCES} \
99 ${FVP_R_INTERCONNECT_SOURCES}