SPM: Common partition runtime entry point
Involve the common partition runtime entry point to perform generic
runtime initialization jobs such as heap initialization before the
practical partition entry point get called. This entry point is part
of SPRTL which is shared for all partitions.
This patch involves the 'sprt_main' as the first step. And, if one
partition is light enough (no heap, no other extra settings), it is
optional to apply the common partition runtime entry as partition
first entry, and the real partition entry is put under 'sub_entry'.
This patch also fixes region address alignments in link scripts.
Change-Id: I9169f6377d476a3e1dad025c75a790aba6b6ad10
Signed-off-by: Summer Qin <summer.qin@arm.com>
Co-authored-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/config/tfm_ipc_config_default.cmake b/config/tfm_ipc_config_default.cmake
index 82847d0..e1f9b93 100644
--- a/config/tfm_ipc_config_default.cmake
+++ b/config/tfm_ipc_config_default.cmake
@@ -10,4 +10,4 @@
set(TFM_PSA_API ON CACHE BOOL "Use PSA API instead of secure library model")
set(CONFIG_TFM_SPM_BACKEND_IPC ON)
set(CONFIG_TFM_SPM_BACKEND_SFN OFF)
-set(CONFIG_TFM_PARTITION_META OFF)
+set(CONFIG_TFM_PARTITION_META ON)