SPM: boot OP-TEE as a guest Secure Partition on top of Hafnium
Add an SPM scenario where Hafnium is loaded as the SPMC at S-EL2
and OP-TEE is instanciated as a Secure Partition at S-EL1.
System boots Hafnium and OP-TEE in the SWd. OP-TEE is booted as
the first and unique Secure Partition. Later when TFTF is booted
in the NWd, the PSA FF-A direct messaging test perform a probing
of OP-TEE's version. The direct message is relayed from TFTF(NS-EL2)
to SPMD(EL3) to Hafnium(S-EL2) and down to OP-TEE(S-EL1). OP-TEE
replies with a direct message response on the way back to TFTF.
Change-Id: Iab033af3d933537df80cc16564bf4172c72f0f93
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
diff --git a/tf_config/fvp-spm-optee-sp b/tf_config/fvp-spm-optee-sp
new file mode 100644
index 0000000..7533f73
--- /dev/null
+++ b/tf_config/fvp-spm-optee-sp
@@ -0,0 +1,8 @@
+ARM_ARCH_MINOR=4
+ARM_SPMC_MANIFEST_DTS=plat/arm/board/fvp/fdts/fvp_spmc_optee_sp_manifest.dts
+CROSS_COMPILE=aarch64-none-elf-
+CTX_INCLUDE_EL2_REGS=1
+PLAT=fvp
+SPD=spmd
+SP_LAYOUT_FILE=${tf_root}/build/fvp/${bin_mode}/optee_sp_layout.json
+SPMD_SPM_AT_SEL2=1