blob: f2a9e6c7631909cd69d7afb216efcbcd214dd1aa [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Sandrine Bailleux16fcd6f2021-11-17 14:57:25 +01003# Copyright (c) 2019-2021 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 # Fetch EDK2 and pre-built partition files
Sandrine Bailleux16fcd6f2021-11-17 14:57:25 +010010 url="$tfa_downloads/spm/FVP_AARCH64_EFI.fd" fetch_file
11 url="$tfa_downloads/spm/STANDALONESMM.fd" fetch_file
Fathi Boudra422bf772019-12-02 11:10:16 +020012
13 archive_file "FVP_AARCH64_EFI.fd"
14 archive_file "STANDALONESMM.fd"
15
16 build_fip BL33="$archive/FVP_AARCH64_EFI.fd" BL32="$archive/STANDALONESMM.fd"
17}
18
19fetch_tf_resource() {
20 # Expect scripts
21 uart="0" file="spm-edk2-uart0.exp" track_expect
22 uart="2" file="spm-edk2-uart2.exp" track_expect
Paul Sokolovsky57253262021-12-14 17:07:26 +030023
24 payload_type="tftf" gen_fvp_yaml_template
Fathi Boudra422bf772019-12-02 11:10:16 +020025}