Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Olivier Deprez | 5e43495 | 2020-06-15 18:30:42 +0200 | [diff] [blame] | 2 | # |
| 3 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
Olivier Deprez | 3daf312 | 2020-10-23 09:56:35 +0200 | [diff] [blame] | 9 | url="$project_filer/ci-files/spm-10-23-2020/secure_hafnium.bin" fetch_file |
| 10 | url="$project_filer/ci-files/spm-10-23-2020/spmc_sel2_optee_sel1.bin" fetch_file |
Olivier Deprez | 5e43495 | 2020-06-15 18:30:42 +0200 | [diff] [blame] | 11 | |
| 12 | archive_file "secure_hafnium.bin" |
| 13 | archive_file "spmc_sel2_optee_sel1.bin" |
| 14 | |
| 15 | cp "${archive}/spmc_sel2_optee_sel1.bin" "${tf_root}/build/fvp/${bin_mode}" |
| 16 | |
| 17 | cat <<EOF > "${tf_root}/build/fvp/${bin_mode}/optee_sp_layout.json" |
| 18 | { |
| 19 | "op-tee" : { |
| 20 | "image": "spmc_sel2_optee_sel1.bin", |
| 21 | "pm": "${tf_root}/fdts/optee_sp_manifest.dts" |
| 22 | } |
| 23 | } |
| 24 | EOF |
| 25 | |
| 26 | build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin" |
| 27 | } |
| 28 | |
| 29 | post_fetch_tf_resource() { |
| 30 | model="base-aemv8a" \ |
| 31 | arch_version="8.4" \ |
| 32 | gen_model_params |
Leonardo Sandoval | 6ba2380 | 2020-10-27 13:17:53 -0600 | [diff] [blame^] | 33 | |
| 34 | model="base-aemv8a" \ |
| 35 | model_bin="FVP_Base_AEMv8A-AEMv8A" \ |
| 36 | gen_fvp_yaml |
Olivier Deprez | 5e43495 | 2020-06-15 18:30:42 +0200 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | fetch_tf_resource() { |
| 40 | # Expect scripts |
| 41 | uart="0" file="tftf.exp" track_expect |
| 42 | uart="1" file="spm-optee-sp-uart1.exp" track_expect |
| 43 | } |