blob: b8129360866106ac42d8ee2db07978e36d4f3484 [file] [log] [blame]
Olivier Deprez18101ca2021-04-23 19:42:04 +02001#!/usr/bin/env bash
2#
Maksims Svecovsc2e24752022-03-24 13:52:31 +00003# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
Olivier Deprez18101ca2021-04-23 19:42:04 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 fvp_romlib_runtime
10 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
11}
12
Chris Kay4e8aaf12022-09-01 15:21:55 +010013post_tf_archive() {
14 fvp_romlib_cleanup
Olivier Deprez18101ca2021-04-23 19:42:04 +020015}
16
Chris Kay4e8aaf12022-09-01 15:21:55 +010017generate_lava_job_template() {
18 payload_type="tftf" gen_fvp_yaml_template
19}
20
21generate_lava_job() {
22 local model="base-aemv8a"
23
24 uart="0" file="tftf.exp" track_expect
25 uart="2" file="spm-uart2.exp" track_expect
Olivier Deprez18101ca2021-04-23 19:42:04 +020026
27 # SPM(reference implementation of S-EL2 firmware) has SMMUv3 driver
28 # enabled to help with stage-2 translation and virtualization of
29 # upstream peripheral devices. Hence, enable the SMMUv3 IP in FVP
30 # by configuring the appropriate parameters of the SMMUv3 AEM.
31
32 model="$model" \
Chris Kay4e8aaf12022-09-01 15:21:55 +010033 arch_version="8.5" \
34 has_branch_target_exception="1" \
35 has_smmuv3_params="1" \
36 memory_tagging_support_level="2" \
Olivier Deprez18101ca2021-04-23 19:42:04 +020037 gen_model_params
38
39 model="$model" gen_fvp_yaml
40}