SPM: Update framework_version check for Partitions
With new FF-M v1.1 coming, TF-M will also implement it and v1.1
is compatible with v1.0.
So the version check in SPM needs update.
This patch update the check policy - only requires the Partition
framework version <= the implemented version.
Change-Id: Ibd6f98f69679851e70acd848f7ea40d06804f28f
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/spm/cmsis_psa/spm_ipc.c b/secure_fw/spm/cmsis_psa/spm_ipc.c
index 171cc1c..cfc0489 100644
--- a/secure_fw/spm/cmsis_psa/spm_ipc.c
+++ b/secure_fw/spm/cmsis_psa/spm_ipc.c
@@ -661,9 +661,9 @@
}
/* Check if the PSA framework version matches. */
- if (partition->p_static->psa_ff_ver !=
+ if (partition->p_static->psa_ff_ver >
PSA_FRAMEWORK_VERSION) {
- ERROR_MSG("Warning: PSA Framework Verison does not match!");
+ ERROR_MSG("Warning: Partition requires higher framework version!");
continue;
}