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 | # 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 | |
| 26 | cp "$archive/scp_rom_bypass.bin" "$archive/scp_bl1.bin" |
| 27 | |
| 28 | gen_recovery_image \ |
| 29 | "$archive/bl1.bin" \ |
| 30 | "$archive/bl2.bin" \ |
| 31 | "$archive/bl31.bin" \ |
| 32 | "$archive/fip.bin" \ |
| 33 | "$archive/scp_bl1.bin" |
| 34 | |
| 35 | payload_type="scp_tests_scmi" gen_juno_yaml |
| 36 | } |
| 37 | |
| 38 | post_package() { |
| 39 | use_debug_bins |
| 40 | } |