Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 2 | # |
| 3 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
Joel Goddard | 9bdfe3c | 2021-02-25 10:15:14 +0000 | [diff] [blame] | 9 | path_bypass_rom="$scp_root/build/juno/GNU/$mode/firmware-scp_romfw_bypass/bin" |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 10 | |
Joel Goddard | 9bdfe3c | 2021-02-25 10:15:14 +0000 | [diff] [blame] | 11 | cp "$path_bypass_rom/juno-bl1-bypass.bin" "$path_bypass_rom/scp_bl1.bin" |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 12 | archive_file "$path_bypass_rom/scp_bl1.bin" |
| 13 | |
Joel Goddard | 9bdfe3c | 2021-02-25 10:15:14 +0000 | [diff] [blame] | 14 | 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" |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 18 | |
| 19 | build_fip BL33="$archive/tftf.bin" SCP_BL2="$archive/scp_ramfw.bin" |
| 20 | } |
| 21 | |
| 22 | post_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 | } |