blob: 2e64845a91dcbc4ad696556d45652e7e5152dc32 [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#!/bin/bash
2#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 url="$sgm_prebuilts/uboot.bin" fetch_file
10 archive_file "uboot.bin"
11
12 # Use SCP binary from SCP build if it exists, or fetch pre-built ones.
13 if [ ! -f "$archive/scp_ram.bin" ]; then
14 url="$sgm_prebuilts/scp_ram.bin" fetch_file
15 archive_file "scp_ram.bin"
16 fi
17
18 build_fip BL33="$archive/uboot.bin" SCP_BL2="$archive/scp_ram.bin"
19}