Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 1 | #!/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 | |
| 8 | post_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 Karatotev | 97de8d8 | 2025-03-06 15:22:21 +0000 | [diff] [blame] | 12 | cp "${archive}/spmc_sel2_optee_sel1.bin" "${archive}/build/tfa/fvp/${bin_mode}" |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 13 | |
Boyan Karatotev | 97de8d8 | 2025-03-06 15:22:21 +0000 | [diff] [blame] | 14 | cat <<-EOF >"${archive}/build/tfa/fvp/${bin_mode}/optee_sp_layout.json" |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 15 | { |
| 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 | |
| 26 | generate_lava_job_template() { |
| 27 | payload_type="tftf" gen_yaml_template |
| 28 | } |
| 29 | |
| 30 | generate_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-Alves | e87b0a0 | 2023-12-07 14:34:48 +0000 | [diff] [blame] | 46 | gicd_are_fixed_one="1" \ |
| 47 | gicv3_ext_interrupt_range="1" \ |
| 48 | gicd_ext_ppi_count="64" \ |
| 49 | gicd_ext_spi_count="1024" \ |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 50 | gen_model_params |
| 51 | |
| 52 | model="$model" gen_fvp_yaml |
| 53 | } |