blob: 20b8552f144f3731110a6ab4bf133d85077aa2ea [file] [log] [blame]
#!/usr/bin/env bash
#
# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
pre_tftf_build() {
# Build Cactus and Ivy images only
targets="cactus ivy" set_tftf_build_targets
}
post_tf_build() {
url="$tfa_downloads/spm/07-29-2021/manifest.dtb" fetch_file
archive_file "manifest.dtb"
build_fip BL32="$archive/secure_hafnium.bin" FVP_HW_CONFIG="$archive/manifest.dtb"
}
fetch_tf_resource() {
url="$tfa_downloads/spm/07-29-2021/initrd.img" saveas="initrd.bin" fetch_file
archive_file "initrd.bin"
# Expect scripts
uart="0" file="spm-linux-uart0.exp" track_expect
uart="2" file="spm-uart2.exp" track_expect
payload_type="linux" gen_fvp_yaml_template
}
post_fetch_tf_resource() {
local model="base-aemv8a"
model="$model" \
arch_version="8.5" \
has_branch_target_exception="1" \
restriction_on_speculative_execution="2" \
kernel_addr=0x88000000 \
kernel_bin="$archive/hafnium.bin" \
has_smmuv3_params="1" \
memory_tagging_support_level="2" \
gen_model_params
model="$model" model_dtb="manifest.dtb" gen_fvp_yaml
}