Madhukar Pappireddy | 88b664c | 2024-01-09 16:56:59 -0600 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Copyright (c) 2024, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
| 9 | build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin" |
| 10 | } |
| 11 | |
| 12 | generate_lava_job_template() { |
| 13 | payload_type="tftf" gen_yaml_template |
| 14 | } |
| 15 | |
| 16 | generate_lava_job() { |
| 17 | local model="base-aemv8a" |
| 18 | |
| 19 | uart="0" file="tftf.exp" track_expect |
| 20 | uart="1" file="hold_uart.exp" track_expect |
Madhukar Pappireddy | 88b664c | 2024-01-09 16:56:59 -0600 | [diff] [blame] | 21 | |
| 22 | # Enable fault injection |
| 23 | model="$model" \ |
| 24 | arch_version="8.5" \ |
| 25 | has_branch_target_exception="1" \ |
| 26 | has_smmuv3_params="1" \ |
| 27 | memory_tagging_support_level="2" \ |
| 28 | gicd_are_fixed_one="1" \ |
| 29 | gicv3_ext_interrupt_range="1" \ |
| 30 | gicd_ext_ppi_count="64" \ |
| 31 | gicd_ext_spi_count="1024" \ |
| 32 | fault_inject="1" \ |
| 33 | gen_model_params |
| 34 | |
| 35 | model="$model" gen_fvp_yaml |
| 36 | } |