blob: 139b63bb0d4e0444da851270c7ce69be571f5b67 [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() {
Joel Goddard9bdfe3c2021-02-25 10:15:14 +000013 path_bypass_rom="$scp_root/build/juno/GNU/$mode/firmware-scp_romfw_bypass/bin"
Zelaleme9e81482020-07-10 15:18:46 -050014
Joel Goddard9bdfe3c2021-02-25 10:15:14 +000015 cp "$path_bypass_rom/juno-bl1-bypass.bin" "$path_bypass_rom/scp_bl1.bin"
Zelaleme9e81482020-07-10 15:18:46 -050016 archive_file "$path_bypass_rom/scp_bl1.bin"
17
Joel Goddard9bdfe3c2021-02-25 10:15:14 +000018 path_ram="$scp_root/build/juno/GNU/$mode/firmware-scp_ramfw/bin"
19
20 cp "$path_ram/juno-bl2.bin" "$path_ram/scp_ramfw.bin"
21 archive_file "$path_ram/scp_ramfw.bin"
Leandro Belli8ff2b092022-06-22 13:53:05 +010022 get_ml_uboot_bin
Zelaleme9e81482020-07-10 15:18:46 -050023 build_fip BL33="$archive/uboot.bin" SCP_BL2="$archive/scp_ramfw.bin"
24}
25
26post_fetch_tf_resource() {
27 gen_recovery_image "$archive/bl1.bin" "$archive/fip.bin" "$archive/scp_bl1.bin"
28 payload_type="linux" gen_juno_yaml
29}