blob: be30e2e4c61db074648ad6f8b87f2d58b0fab8e4 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Zelaleme9e81482020-07-10 15:18:46 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
Harrison Mutai77c1fc72023-03-27 13:22:41 +01009 url="${scp_bl2_url}" filename="scp_bl2.bin" fetch_and_archive
10 url="${uboot32_fip_url}" image="nt-fw.bin" output_name="uboot.bin" \
11 get_boot_image_from_fip
Zelaleme9e81482020-07-10 15:18:46 -050012
13 # Building FIP for this config requries a BL32 built in AArch32, but
14 # we'll only build that later. An appropriate BL32 image must be updated
15 # in the FIP before the recovery image is built
16 local tmp_bl32="$(mktempfile)"
17 build_fip BL32="$tmp_bl32" BL33="$archive/uboot.bin" SCP_BL2="$archive/scp_bl2.bin"
18}
19
20post_fetch_tf_resource() {
21 gen_recovery_image32_oe "$archive/bl1.bin" "$archive/fip.bin"
22 bootloader_prompt="juno32#" payload_type="linux_reboot" os="oe" nfs_rootfs="$juno32_rootfs_url" \
23 gen_juno_yaml
24}