blob: d3096f753990fdf1bc79e9fb6dad24fa0d0ad6c8 [file] [log] [blame]
Zelaleme9e81482020-07-10 15:18:46 -05001#!/bin/bash
2#
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}