blob: f6d9990b3dd2c849aed319d8d3736cf8ca582072 [file] [log] [blame]
Saul Romero8ebc81f2023-09-01 12:20:14 +01001#!/usr/bin/env bash
2#
3# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
10}
11
12generate_lava_job_template() {
13 payload_type="tftf" gen_yaml_template
14}
15
16generate_lava_job() {
17 local model="base-aemv8a"
18
19 uart="0" file="tftf.exp" track_expect
Saul Romero8ebc81f2023-09-01 12:20:14 +010020
21 # SPM(reference implementation of S-EL2 firmware) has SMMUv3 driver
22 # enabled to help with stage-2 translation and virtualization of
23 # upstream peripheral devices. Hence, enable the SMMUv3 IP in FVP
24 # by configuring the appropriate parameters of the SMMUv3 AEM.
25 if ! is_arm_jenkins_env && not_upon "$local_ci"; then
26 bmcov_plugin_path="${coverage_trace_plugin}"
27 bmcov_plugin="1"
28 fi
29
30 model="$model" \
31 arch_version="8.5" \
32 has_branch_target_exception="1" \
33 has_smmuv3_params="1" \
34 memory_tagging_support_level="2" \
J-Alvese87b0a02023-12-07 14:34:48 +000035 gicd_are_fixed_one="1" \
36 gicv3_ext_interrupt_range="1" \
37 gicd_ext_ppi_count="64" \
38 gicd_ext_spi_count="1024" \
Saul Romero8ebc81f2023-09-01 12:20:14 +010039 gen_model_params
40
41 model="$model" gen_fvp_yaml
42}