blob: 6847a70a01ca027c6f8fece04ae822e361ae23b3 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Olivier Deprez5e434952020-06-15 18:30:42 +02002#
3# Copyright (c) 2020, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
Olivier Deprezaa4d1262020-10-30 15:02:17 +01009 url="$tfa_downloads/spm/12-03-2020/spmc_sel2_optee_sel1.bin" fetch_file
Olivier Deprez5e434952020-06-15 18:30:42 +020010
Olivier Deprez5e434952020-06-15 18:30:42 +020011 archive_file "spmc_sel2_optee_sel1.bin"
Olivier Deprez5e434952020-06-15 18:30:42 +020012 cp "${archive}/spmc_sel2_optee_sel1.bin" "${tf_root}/build/fvp/${bin_mode}"
13
14cat <<EOF > "${tf_root}/build/fvp/${bin_mode}/optee_sp_layout.json"
15{
16 "op-tee" : {
17 "image": "spmc_sel2_optee_sel1.bin",
Olivier Deprezaa4d1262020-10-30 15:02:17 +010018 "pm": "${tf_root}/plat/arm/board/fvp/fdts/optee_sp_manifest.dts"
Olivier Deprez5e434952020-06-15 18:30:42 +020019 }
20}
21EOF
22
23 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
24}
25
Olivier Deprezaa4d1262020-10-30 15:02:17 +010026fetch_tf_resource() {
27 # Expect scripts
28 uart="0" file="tftf.exp" track_expect
29 uart="1" file="spm-optee-sp-uart1.exp" track_expect
30}
31
Olivier Deprez5e434952020-06-15 18:30:42 +020032post_fetch_tf_resource() {
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060033 local model="base-aemv8a"
Leonardo Sandoval6ba23802020-10-27 13:17:53 -060034
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060035 model="$model" arch_version="8.4" gen_model_params
36 model="$model" gen_fvp_yaml
Olivier Deprez5e434952020-06-15 18:30:42 +020037}