blob: 23343710f418b54e66ff5432b5a4ad9b07a55803 [file] [log] [blame]
Olivier Deprez18101ca2021-04-23 19:42:04 +02001#!/usr/bin/env bash
2#
3# Copyright (c) 2021, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 fvp_romlib_runtime
10 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
11}
12
13fetch_tf_resource() {
14 # Expect scripts
15 uart="0" file="tftf.exp" track_expect
16 uart="2" file="spm-uart2.exp" track_expect
17
18 payload_type="tftf" gen_fvp_yaml_template
19
20}
21
22post_fetch_tf_resource() {
23 local model="base-aemv8a"
24
25 # SPM(reference implementation of S-EL2 firmware) has SMMUv3 driver
26 # enabled to help with stage-2 translation and virtualization of
27 # upstream peripheral devices. Hence, enable the SMMUv3 IP in FVP
28 # by configuring the appropriate parameters of the SMMUv3 AEM.
29
30 model="$model" \
31 arch_version="8.5" \
32 has_smmuv3_params="1" \
33 has_branch_target_exception="1" \
34 restriction_on_speculative_execution="2" \
35 gen_model_params
36
37 model="$model" gen_fvp_yaml
38}
39
40post_tf_archive() {
41 fvp_romlib_cleanup
42}