laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 1 | # |
| 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 |
| 8 | ARCH := aarch64 |
| 9 | |
| 10 | # Override to exclude BL2, BL2U, BL31, and BL33 for FVP_R |
| 11 | override NEED_BL2 := no |
| 12 | override NEED_BL2U := no |
| 13 | override NEED_BL31 := no |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 14 | NEED_BL32 := no |
laurenw-arm | 56f1e3e | 2021-03-03 14:19:38 -0600 | [diff] [blame] | 15 | |
| 16 | override CTX_INCLUDE_AARCH32_REGS := 0 |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 17 | |
Gary Morrison | 3d7f654 | 2021-01-27 13:08:47 -0600 | [diff] [blame] | 18 | # Use MPU-based memory management: |
| 19 | XLAT_MPU_LIB_V1 := 1 |
| 20 | |
johpow01 | 0033b25 | 2021-10-11 14:51:11 -0500 | [diff] [blame] | 21 | # FVP R will not have more than 2 clusters so just use CCI interconnect |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 22 | FVP_R_INTERCONNECT_SOURCES := drivers/arm/cci/cci.c |
johpow01 | 0033b25 | 2021-10-11 14:51:11 -0500 | [diff] [blame] | 23 | |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 24 | |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 25 | include plat/arm/board/common/board_common.mk |
| 26 | include plat/arm/common/arm_common.mk |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 27 | |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 28 | PLAT_INCLUDES := -Iplat/arm/board/fvp_r/include |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 29 | |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 30 | FVP_R_BL_COMMON_SOURCES := plat/arm/board/fvp_r/fvp_r_common.c \ |
Gary Morrison | 3d7f654 | 2021-01-27 13:08:47 -0600 | [diff] [blame] | 31 | plat/arm/board/fvp_r/fvp_r_context_mgmt.c \ |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 32 | plat/arm/board/fvp_r/fvp_r_debug.S \ |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 33 | plat/arm/board/fvp_r/fvp_r_err.c \ |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 34 | plat/arm/board/fvp_r/fvp_r_helpers.S \ |
johpow01 | 0033b25 | 2021-10-11 14:51:11 -0500 | [diff] [blame] | 35 | plat/arm/board/fvp_r/fvp_r_misc_helpers.S |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 36 | |
| 37 | FVP_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-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 39 | plat/arm/board/fvp_r/fvp_r_io_storage.c \ |
Gary Morrison | 3d7f654 | 2021-01-27 13:08:47 -0600 | [diff] [blame] | 40 | plat/arm/board/fvp_r/fvp_r_bl1_entrypoint.S \ |
| 41 | plat/arm/board/fvp_r/fvp_r_bl1_exceptions.S \ |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 42 | plat/arm/board/fvp_r/fvp_r_bl1_main.c |
| 43 | |
| 44 | FVP_R_CPU_LIBS := lib/cpus/${ARCH}/aem_generic.S |
| 45 | |
| 46 | FVP_R_DYNC_CFG_SOURCES := common/fdt_wrappers.c \ |
johpow01 | 0033b25 | 2021-10-11 14:51:11 -0500 | [diff] [blame] | 47 | plat/arm/common/arm_dyn_cfg.c |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 48 | |
| 49 | ifeq (${TRUSTED_BOARD_BOOT},1) |
| 50 | FVP_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 Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 54 | 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 | |
| 61 | FVP_R_BL1_SOURCES += ${MBEDTLS_SOURCES} \ |
| 62 | ${FVP_R_AUTH_SOURCES} |
| 63 | endif |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 64 | |
| 65 | ifeq (${USE_SP804_TIMER},1) |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 66 | FVP_R_BL_COMMON_SOURCES += drivers/arm/sp804/sp804_delay_timer.c |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 67 | else |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 68 | FVP_R_BL_COMMON_SOURCES += drivers/delay_timer/generic_delay_timer.c |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 69 | endif |
| 70 | |
| 71 | # Enable Activity Monitor Unit extensions by default |
Andre Przywara | 0b7f1b0 | 2023-03-21 13:53:19 +0000 | [diff] [blame] | 72 | ENABLE_FEAT_AMU := 2 |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 73 | |
| 74 | ifneq (${ENABLE_STACK_PROTECTOR},0) |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 75 | FVP_R_BL_COMMON_SOURCES += plat/arm/board/fvp_r/fvp_r_stack_protector.c |
laurenw-arm | 7c7b198 | 2020-10-21 13:34:40 -0500 | [diff] [blame] | 76 | endif |
| 77 | |
Manish Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 78 | override 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 Pandey | e2a6b35 | 2021-10-04 13:38:56 +0100 | [diff] [blame] | 86 | 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} |