blob: a37e6eca4961325f89975b39302afca969a6702f [file] [log] [blame]
#!/usr/bin/env bash
#
# Copyright (c) 2024, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
post_tf_build() {
build_fip BL33="$archive/tftf.bin"
}
post_tf_archive() {
# Maximum FIP size is 2MiB = 2097152
gen_gpt_bin "$archive/fip.bin" 2097152
# Corrupt primary GPT entries to force TF-A to use the backup
corrupt_gpt_bin "$archive/fip_gpt.bin" "fwu-metadata"
}
generate_lava_job_template() {
uart="0" file="backup_fwu_metadata.exp" track_expect
uart="1" file="hold_uart.exp" track_expect
payload_type="tftf" gen_yaml_template
}