Consolidate targets settings in opteesp deployments

In the "opteesp" environment UUID and SP name is communicated from cmake
to C sources using macro definitions. Refactor the cmake scripts to
remove duplication.

Change-Id: Ia51a334035a9120293b28ef8a46e66578c5d6c90
Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
diff --git a/deployments/spm-test3/opteesp/CMakeLists.txt b/deployments/spm-test3/opteesp/CMakeLists.txt
index d0e198c..87c1c1c 100644
--- a/deployments/spm-test3/opteesp/CMakeLists.txt
+++ b/deployments/spm-test3/opteesp/CMakeLists.txt
@@ -15,7 +15,9 @@
 set(SP_BIN_UUID_CANON "23eb0100-e32a-4497-9052-2f11e584afa6")
 set(SP_UUID_CANON "23eb0100-e32a-4497-9052-2f11e584afa6")
 set(SP_NUMBER 3)
-include(${TS_ROOT}/components/service/spm_test/spm_test.cmake)
+set(SP_HEAP_SIZE "32 * 1024" CACHE STRING "SP heap size in bytes")
+set(TRACE_PREFIX "SPM-TEST${SP_NUMBER}" CACHE STRING "Trace prefix")
+
 #-------------------------------------------------------------------------------
 #  Components that are spm-test specific to deployment in the opteesp
 #  environment.
@@ -30,3 +32,5 @@
 		"components/messaging/ffa/libsp"
 		"environments/opteesp"
 )
+
+include(${TS_ROOT}/components/service/spm_test/spm_test.cmake)