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() { |
| 9 | url="$sgm_prebuilts/uboot.bin" fetch_file |
| 10 | archive_file "uboot.bin" |
| 11 | |
| 12 | # Use SCP binary from SCP build if it exists, or fetch pre-built ones. |
| 13 | if [ ! -f "$archive/scp_ram.bin" ]; then |
| 14 | url="$sgm_prebuilts/scp_ram.bin" fetch_file |
| 15 | archive_file "scp_ram.bin" |
| 16 | fi |
| 17 | |
| 18 | build_fip BL33="$archive/uboot.bin" SCP_BL2="$archive/scp_ram.bin" |
| 19 | } |