blob: 2ef3708922a5dee15c18274efac3c36891b6fca4 [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 url="$tfa_downloads/spm/07-29-2021/spmc_sel2_optee_sel1.bin" fetch_file
10
11 archive_file "spmc_sel2_optee_sel1.bin"
Boyan Karatotev97de8d82025-03-06 15:22:21 +000012 cp "${archive}/spmc_sel2_optee_sel1.bin" "${archive}/build/tfa/fvp/${bin_mode}"
Saul Romero8ebc81f2023-09-01 12:20:14 +010013
Boyan Karatotev97de8d82025-03-06 15:22:21 +000014 cat <<-EOF >"${archive}/build/tfa/fvp/${bin_mode}/optee_sp_layout.json"
Saul Romero8ebc81f2023-09-01 12:20:14 +010015 {
16 "op-tee" : {
17 "image": "spmc_sel2_optee_sel1.bin",
18 "pm": "${tf_root}/plat/arm/board/fvp/fdts/optee_sp_manifest.dts"
19 }
20 }
21 EOF
22
23 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
24}
25
26generate_lava_job_template() {
27 payload_type="tftf" gen_yaml_template
28}
29
30generate_lava_job() {
31 local model="base-aemv8a"
32
33 uart="0" file="tftf.exp" track_expect
34 uart="1" file="spm-optee-sp-uart1.exp" track_expect
35
36 if ! is_arm_jenkins_env && not_upon "$local_ci"; then
37 bmcov_plugin_path="${coverage_trace_plugin}"
38 bmcov_plugin="1"
39 fi
40
41 model="$model" \
42 arch_version="8.5" \
43 has_branch_target_exception="1" \
44 has_smmuv3_params="1" \
45 memory_tagging_support_level="2" \
J-Alvese87b0a02023-12-07 14:34:48 +000046 gicd_are_fixed_one="1" \
47 gicv3_ext_interrupt_range="1" \
48 gicd_ext_ppi_count="64" \
49 gicd_ext_spi_count="1024" \
Saul Romero8ebc81f2023-09-01 12:20:14 +010050 gen_model_params
51
52 model="$model" gen_fvp_yaml
53}