blob: 2778e832167e633cedc1c6bcf76448617218cec9 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
Harrison Mutaiae6fbf12025-04-11 15:18:21 +00009 # Set initial FIP (Firmware Image Package) options
10 options="BL33=$archive/tftf.bin BL32=$archive/bl32.bin"
11
12 # If TF-A config is 'opteed', include additional OP-TEE binary options
13 if [[ "$tf_config" == *opteed* ]]; then
14 options="$options BL32_EXTRA1=$archive/bl32_extra1.bin"
15
16 if [[ -f "$archive/bl32_extra2.bin" ]]; then
17 options="$options BL32_EXTRA2=$archive/bl32_extra2.bin"
18 fi
19 fi
20
21 # Build the FIP with the collected options
22 build_fip $options
Fathi Boudra422bf772019-12-02 11:10:16 +020023}