blob: e5b630ebd5bb0c3afd69e0b1dd2798380376afe5 [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
Usama Arif7abee522021-08-12 20:18:35 +010014 url="$scp_prebuilts/tc1/scp_ramfw.bin" fetch_file
Usama Arifcba711d2021-08-04 15:53:42 +010015 archive_file "scp_ramfw.bin"
16 fi
17
18 build_fip BL33="$archive/u-boot.bin" SCP_BL2="$archive/scp_ramfw.bin"
19}