Manish V Badarkhe | b473c40 | 2024-02-14 16:50:08 +0000 | [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" |
| 10 | } |
| 11 | |
| 12 | post_tf_archive() { |
| 13 | # Maximum FIP size is 2MiB = 2097152 |
| 14 | gen_gpt_bin "$archive/fip.bin" 2097152 |
| 15 | |
| 16 | # Corrupt primary GPT entries to force TF-A to use the backup |
| 17 | corrupt_gpt_bin "$archive/fip_gpt.bin" "fwu-metadata" |
| 18 | } |
| 19 | |
| 20 | generate_lava_job_template() { |
| 21 | uart="0" file="backup_fwu_metadata.exp" track_expect |
| 22 | uart="1" file="hold_uart.exp" track_expect |
| 23 | |
| 24 | payload_type="tftf" gen_yaml_template |
| 25 | } |