build: Genereate OPTEE_SP_UUID from cmake
Generate the OPTEE_SP_UUID define from cmake instead of having it
defined optee_sp_user_defines.h.
The ${NAME}_SP_UUID_BYTES defined inside ${NAME}_sp.h are not used
anywhere. Delete them, and generate a OPTEE_SP_UUID_BYTES definition
instead.
This will mean that there is only one definition for the UUID and the
other formats are derived from it.
Signed-off-by: Jelle Sels <jelle.sels@arm.com>
Change-Id: Ia7b4cba22c47350cbbef7de370892ffe8f08a908
diff --git a/deployments/sfs-demo/opteesp/CMakeLists.txt b/deployments/sfs-demo/opteesp/CMakeLists.txt
index 364aa30..ac07e60 100644
--- a/deployments/sfs-demo/opteesp/CMakeLists.txt
+++ b/deployments/sfs-demo/opteesp/CMakeLists.txt
@@ -17,9 +17,13 @@
project(trusted-services LANGUAGES C ASM)
add_executable(sfs-demo)
set(SP_UUID_CANON "01109cf8-e5ca-446f-9b55-f3cdc65110c8")
-set(SP_UUID_LE "0xf89c1001 0x6f44cae5 0xcdf3559b 0xc81051c6")
set(SP_HEAP_SIZE "32 * 1024" CACHE STRING "SP heap size in bytes")
set(TRACE_PREFIX "SFSDEMO" CACHE STRING "Trace prefix")
+include(${TS_ROOT}/tools/cmake/common/TargetCompileDefinitions.cmake)
+set_target_uuids(
+ SP_UUID ${SP_UUID_CANON}
+ SP_NAME "sfs-demo"
+)
add_components(TARGET "sfs-demo"
BASE_DIR ${TS_ROOT}