Build: Fix library model build warnings
There are some redefination warnings when building TF_M library model.
This patch made the following changes:
- Rename "SPM_PART_FLAG_PSA_ROT" to "PARTITION_MODEL_PSA_ROT".
- Move "TFM_PARTITION_UNPRIVILEGED_MODE" and
"TFM_PARTITION_PRIVILEGED_MODE" from partition_define.h to spm_ipc.h.
Change-Id: I2b40fdfe8c1578ca3d08145d3b834c37859efb87
Signed-off-by: Shawn Shan <Shawn.Shan@arm.com>
diff --git a/secure_fw/spm/cmsis_psa/spm_ipc.c b/secure_fw/spm/cmsis_psa/spm_ipc.c
index 054ee11..d78c49c 100644
--- a/secure_fw/spm/cmsis_psa/spm_ipc.c
+++ b/secure_fw/spm/cmsis_psa/spm_ipc.c
@@ -259,7 +259,7 @@
#if TFM_LVL == 1
return TFM_PARTITION_PRIVILEGED_MODE;
#else /* TFM_LVL == 1 */
- if (partition_flags & SPM_PART_FLAG_PSA_ROT) {
+ if (partition_flags & PARTITION_MODEL_PSA_ROT) {
return TFM_PARTITION_PRIVILEGED_MODE;
} else {
return TFM_PARTITION_UNPRIVILEGED_MODE;