blob: 439ec70addfc2b3e46ea9dc2c64cbc311c7bebdf [file] [log] [blame]
Usama Arifcba711d2021-08-04 15:53:42 +01001#!/usr/bin/env bash
2#
3# Copyright (c) 2021, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_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="$scp_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}