blob: 51df98ea4198aedc052c3471ccb125faaad1970d [file] [log] [blame]
Govindraj Raja67501732023-09-22 16:27:06 -05001#!/usr/bin/env bash
2#
laurenw-arm2c6665f2024-02-09 16:08:34 -06003# Copyright (c) 2024, Arm Limited. All rights reserved.
Govindraj Raja67501732023-09-22 16:27:06 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 build_fip BL33="$archive/tftf.bin"
10}
11
12post_tf_archive() {
Manish V Badarkhe048c9682024-01-22 10:11:49 +000013 # Maximum FIP size is 2MiB = 2097152
14 gen_gpt_bin "$archive/fip.bin" 2097152
Govindraj Raja67501732023-09-22 16:27:06 -050015
laurenw-arm2c6665f2024-02-09 16:08:34 -060016 # Corrupt primary GPT entries to force TF-A to use the backup
17 corrupt_gpt_bin "$archive/fip_gpt.bin" "partition-entries"
Govindraj Raja67501732023-09-22 16:27:06 -050018}
19
20generate_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}