blob: d0bd4b13c843238ee817dd0df178e6a9790fad22 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
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}