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 | test_setup() { |
| 8 | echo "Building only in RELEASE mode." |
| 9 | set_hook_var "bin_mode" "release" |
| 10 | } |
| 11 | |
| 12 | post_tf_build() { |
Joel Goddard | 9bdfe3c | 2021-02-25 10:15:14 +0000 | [diff] [blame] | 13 | 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] | 14 | |
Joel Goddard | 9bdfe3c | 2021-02-25 10:15:14 +0000 | [diff] [blame] | 15 | 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] | 16 | archive_file "$path_bypass_rom/scp_bl1.bin" |
| 17 | |
Joel Goddard | 9bdfe3c | 2021-02-25 10:15:14 +0000 | [diff] [blame] | 18 | path_ram="$scp_root/build/juno/GNU/$mode/firmware-scp_ramfw/bin" |
| 19 | |
| 20 | cp "$path_ram/juno-bl2.bin" "$path_ram/scp_ramfw.bin" |
| 21 | archive_file "$path_ram/scp_ramfw.bin" |
Leandro Belli | 8ff2b09 | 2022-06-22 13:53:05 +0100 | [diff] [blame] | 22 | get_ml_uboot_bin |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 23 | build_fip BL33="$archive/uboot.bin" SCP_BL2="$archive/scp_ramfw.bin" |
| 24 | } |
| 25 | |
| 26 | post_fetch_tf_resource() { |
| 27 | gen_recovery_image "$archive/bl1.bin" "$archive/fip.bin" "$archive/scp_bl1.bin" |
| 28 | payload_type="linux" gen_juno_yaml |
| 29 | } |