blob: 379eb034abe94ca25c7e29500ff31a3e6544627a [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
Nicola Mazzucatoa5192542022-05-13 17:13:24 +01003# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Zelaleme9e81482020-07-10 15:18:46 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7test_setup() {
8 # Only need to run on debug
9 echo "Building only in DEBUG mode."
10 set_hook_var "bin_mode" "debug"
11}
12
13pre_tf_build() {
14 build_scmi_lib_scp_tools
15}
16
17post_tf_archive() {
18 build_tf_for_scp_tools
19
20 build_fip_for_scp_tools
21}
22
23post_fetch_tf_resource() {
24 echo "archive.. $archive"
25
Leandro Belli9d39c0f2024-06-05 15:50:33 +010026 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
Zelaleme9e81482020-07-10 15:18:46 -050031
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 Mazzucatoa5192542022-05-13 17:13:24 +010039 payload_type="scp_tests_scmi" juno_revision="juno-r0" gen_juno_yaml
Zelaleme9e81482020-07-10 15:18:46 -050040}
41
42post_package() {
43 use_debug_bins
44}