Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 2 | # |
Leonardo Sandoval | 579c737 | 2020-10-23 15:23:32 -0500 | [diff] [blame] | 3 | # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
Harrison Mutai | ae6fbf1 | 2025-04-11 15:18:21 +0000 | [diff] [blame] | 9 | # 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 Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 23 | } |