Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
| 9 | url="$tc_prebuilts/u-boot.bin" fetch_file |
| 10 | archive_file "u-boot.bin" |
| 11 | |
| 12 | # Use SCP binary from SCP build if it exists, or fetch pre-built ones. |
| 13 | if [ ! -f "$archive/scp_ramfw.bin" ]; then |
| 14 | url="$tc_prebuilts/scp_ramfw.bin" fetch_file |
| 15 | archive_file "scp_ramfw.bin" |
| 16 | fi |
| 17 | |
| 18 | build_fip BL33="$archive/u-boot.bin" SCP_BL2="$archive/scp_ramfw.bin" |
| 19 | } |