blob: b54084cac2d1d08e2e1840b3cd0ec473c21227f2 [file] [log] [blame]
Govindraj Raja67501732023-09-22 16:27:06 -05001#!/usr/bin/env bash
2#
Manish V Badarkhe048c9682024-01-22 10:11:49 +00003# Copyright (c) 2023-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
16 # Corrupt primary GPT header to force TF-A to use the backup one
laurenw-arm2c6665f2024-02-09 16:08:34 -060017 corrupt_gpt_bin "$archive/fip_gpt.bin" "header"
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}