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 | # |
Nicola Mazzucato | a519254 | 2022-05-13 17:13:24 +0100 | [diff] [blame] | 3 | # Copyright (c) 2020-2022, Arm Limited. All rights reserved. |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | test_setup() { |
| 8 | # Only need to run on debug |
| 9 | echo "Building only in DEBUG mode." |
| 10 | set_hook_var "bin_mode" "debug" |
| 11 | } |
| 12 | |
| 13 | pre_tf_build() { |
| 14 | build_scmi_lib_scp_tools |
| 15 | } |
| 16 | |
| 17 | post_tf_archive() { |
| 18 | build_tf_for_scp_tools |
| 19 | |
| 20 | build_fip_for_scp_tools |
| 21 | } |
| 22 | |
| 23 | post_fetch_tf_resource() { |
| 24 | echo "archive.. $archive" |
| 25 | |
Leandro Belli | 9d39c0f | 2024-06-05 15:50:33 +0100 | [diff] [blame] | 26 | path_bypass_rom="$scp_root/build/juno/GNU/$mode/firmware-scp_romfw_bypass/bin" |
| 27 | cp "$path_bypass_rom/juno-bl1-bypass.bin" "$path_bypass_rom/scp_bl1.bin" |
| 28 | archive_file "$path_bypass_rom/scp_bl1.bin" |
| 29 | |
| 30 | ls $archive |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 31 | |
| 32 | gen_recovery_image \ |
| 33 | "$archive/bl1.bin" \ |
| 34 | "$archive/bl2.bin" \ |
| 35 | "$archive/bl31.bin" \ |
| 36 | "$archive/fip.bin" \ |
| 37 | "$archive/scp_bl1.bin" |
| 38 | |
Nicola Mazzucato | a519254 | 2022-05-13 17:13:24 +0100 | [diff] [blame] | 39 | payload_type="scp_tests_scmi" juno_revision="juno-r0" gen_juno_yaml |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | post_package() { |
| 43 | use_debug_bins |
| 44 | } |