blob: d1b13682e62c2d23b8902732f5ff022c6ee6cb38 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
3# Copyright (c) 2020, 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="$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}