blob: e88e18993dcff1c543788fbc0de6f0a646d47405 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
3# Copyright (c) 2020, Arm Limited. All rights reserved.
4#
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
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
38post_package() {
39 use_debug_bins
40}