DPE: Add context manager code

It manages handles, component contexts and layer contexts.

Signed-off-by: Maulik Patel <maulik.patel@arm.com>
Change-Id: I280a5096792f7c286695e9d567e09e00850ac101
diff --git a/partitions/dice_protection_environment/CMakeLists.txt b/partitions/dice_protection_environment/CMakeLists.txt
index 447ee8a..b5eb637 100644
--- a/partitions/dice_protection_environment/CMakeLists.txt
+++ b/partitions/dice_protection_environment/CMakeLists.txt
@@ -20,6 +20,7 @@
 target_sources(tfm_app_rot_partition_dpe
     PRIVATE
         dpe_cmd_decode.c
+        dpe_context_mngr.c
         dpe_impl.c
         dpe_log.c
         dpe_req_mngr.c
@@ -45,6 +46,11 @@
         ${CMAKE_BINARY_DIR}/generated/secure_fw/partitions/dice_protection_environment
 )
 
+target_compile_definitions(tfm_app_rot_partition_dpe
+    PRIVATE
+        $<$<BOOL:${TFM_S_REG_TEST}>:TFM_S_REG_TEST>
+)
+
 target_link_libraries(tfm_app_rot_partition_dpe
     PRIVATE
         tfm_sprt