blob: d7acd932f963fb31f6d197a9e1d597e4a4d461e7 [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 echo "Building only in RELEASE mode."
9 set_hook_var "bin_mode" "release"
10}
11
12post_tf_build() {
13 path_bypass_rom="$scp_root/build/product/juno/scp_romfw_bypass/$mode/bin"
14
15 cp "$path_bypass_rom/scp_romfw_bypass.bin" "$path_bypass_rom/scp_bl1.bin"
16 archive_file "$path_bypass_rom/scp_bl1.bin"
17
18 archive_file "$scp_root/build/product/juno/scp_ramfw/$mode/bin/scp_ramfw.bin"
19 get_uboot_bin
20 build_fip BL33="$archive/uboot.bin" SCP_BL2="$archive/scp_ramfw.bin"
21}
22
23post_fetch_tf_resource() {
24 gen_recovery_image "$archive/bl1.bin" "$archive/fip.bin" "$archive/scp_bl1.bin"
25 payload_type="linux" gen_juno_yaml
26}