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