blob: 4ef2d9fe6914c3a1fcf1d30010030a1a926760c8 [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() {
Joel Goddard9bdfe3c2021-02-25 10:15:14 +00009 path_bypass_rom="$scp_root/build/juno/GNU/$mode/firmware-scp_romfw_bypass/bin"
Zelaleme9e81482020-07-10 15:18:46 -050010
Joel Goddard9bdfe3c2021-02-25 10:15:14 +000011 cp "$path_bypass_rom/juno-bl1-bypass.bin" "$path_bypass_rom/scp_bl1.bin"
Zelaleme9e81482020-07-10 15:18:46 -050012 archive_file "$path_bypass_rom/scp_bl1.bin"
13
Joel Goddard9bdfe3c2021-02-25 10:15:14 +000014 path_ram="$scp_root/build/juno/GNU/$mode/firmware-scp_ramfw/bin"
15
16 cp "$path_ram/juno-bl2.bin" "$path_ram/scp_ramfw.bin"
17 archive_file "$path_ram/scp_ramfw.bin"
Zelaleme9e81482020-07-10 15:18:46 -050018
19 build_fip BL33="$archive/tftf.bin" SCP_BL2="$archive/scp_ramfw.bin"
20}
21
22post_fetch_tf_resource() {
23 gen_recovery_image "$archive/bl1.bin" "$archive/fip.bin" "$archive/scp_bl1.bin"
24 payload_type="tftf" gen_juno_yaml
25}