blob: 485220b2c3e6cad5887c2f1cc1ac0149423747ab [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
Andre Przywara139d58d2021-12-03 13:39:11 +00003# Copyright (c) 2019-2022 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
Andre Przywara139d58d2021-12-03 13:39:11 +000010 get_ml_uboot_bin
Harrison Mutai77c1fc72023-03-27 13:22:41 +010011 url="${optee_fip_url}" image="tos-fw.bin" output_name="bl32.bin" \
12 get_boot_image_from_fip
13
Zelaleme9e81482020-07-10 15:18:46 -050014 build_fip BL33="$archive/uboot.bin" BL32="$archive/bl32.bin" SCP_BL2="$archive/scp_bl2.bin"
15}
16
17post_fetch_tf_resource() {
Andre Przywara139d58d2021-12-03 13:39:11 +000018 get_linux_image
19 gen_recovery_image "$archive/bl1.bin" "$archive/fip.bin" "$archive/Image" "$archive/ramdisk.img" "$archive/blank.img"
Zelaleme9e81482020-07-10 15:18:46 -050020 payload_type="linux" gen_juno_yaml
21}