Govindraj Raja | 6750173 | 2023-09-22 16:27:06 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
laurenw-arm | 2c6665f | 2024-02-09 16:08:34 -0600 | [diff] [blame] | 3 | # Copyright (c) 2024, Arm Limited. All rights reserved. |
Govindraj Raja | 6750173 | 2023-09-22 16:27:06 -0500 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
| 9 | build_fip BL33="$archive/tftf.bin" |
| 10 | } |
| 11 | |
| 12 | post_tf_archive() { |
Manish V Badarkhe | 048c968 | 2024-01-22 10:11:49 +0000 | [diff] [blame] | 13 | # Maximum FIP size is 2MiB = 2097152 |
| 14 | gen_gpt_bin "$archive/fip.bin" 2097152 |
Govindraj Raja | 6750173 | 2023-09-22 16:27:06 -0500 | [diff] [blame] | 15 | |
laurenw-arm | 2c6665f | 2024-02-09 16:08:34 -0600 | [diff] [blame] | 16 | # Corrupt primary GPT entries to force TF-A to use the backup |
| 17 | corrupt_gpt_bin "$archive/fip_gpt.bin" "partition-entries" |
Govindraj Raja | 6750173 | 2023-09-22 16:27:06 -0500 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | generate_lava_job_template() { |
| 21 | uart="0" file="backup_gpt.exp" track_expect |
| 22 | uart="1" file="hold_uart.exp" track_expect |
| 23 | |
| 24 | payload_type="tftf" gen_yaml_template |
| 25 | } |