blob: d0bd4b13c843238ee817dd0df178e6a9790fad22 [file] [log] [blame]
#!/usr/bin/env bash
#
# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
post_tf_build() {
url="$sgm_prebuilts/uboot.bin" fetch_file
archive_file "uboot.bin"
# Use SCP binary from SCP build if it exists, or fetch pre-built ones.
if [ ! -f "$archive/scp_ram.bin" ]; then
url="$sgm_prebuilts/scp_ram.bin" fetch_file
archive_file "scp_ram.bin"
fi
build_fip BL33="$archive/uboot.bin" SCP_BL2="$archive/scp_ram.bin"
}