blob: cb704b1de2359b5635730617596b47eaa44100cf [file] [log] [blame]
#!/usr/bin/env bash
#
# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
post_tf_build() {
url="${scp_bl2_url}" filename="scp_bl2.bin" fetch_and_archive
url="${uboot32_fip_url}" image="nt-fw.bin" output_name="uboot.bin" \
get_boot_image_from_fip
# Building FIP for this config requries a BL32 built in AArch32, but
# we'll only build that later. An appropriate BL32 image must be updated
# in the FIP before the recovery image is built
local tmp_bl32="$(mktempfile)"
build_fip BL32="$tmp_bl32" BL33="$archive/uboot.bin" SCP_BL2="$archive/scp_bl2.bin"
}
post_fetch_tf_resource() {
gen_recovery_image32 "$archive/bl1.bin" "$archive/fip.bin"
bootloader_prompt="juno32#" linux_prompt="/\\s#" payload_type="linux" \
gen_juno_yaml
}