RSE: Build CC3XX in RelWithDebInfo all the time

BL1 code size is dimensioned for production requirements
and can not afford different build types to be always
accommodated, hence force it to RelWithDebInfo all the time

Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I15e6ef80cf13f8839f7f01a9011e97b7a9130005
diff --git a/platform/ext/target/arm/rse/common/CMakeLists.txt b/platform/ext/target/arm/rse/common/CMakeLists.txt
index b082932..d98f177 100644
--- a/platform/ext/target/arm/rse/common/CMakeLists.txt
+++ b/platform/ext/target/arm/rse/common/CMakeLists.txt
@@ -124,7 +124,14 @@
 # Set which PLATFORM depedency must be used by the CC3XX driver
 set(CC3XX_PLATFORM_INTERFACE platform_bl1_1)
 set(CC3XX_TARGET_PREFIX bl1_)
+# BL1 code size is dimensioned for production hence we can't afford
+# the variability required by building with different build type:
+# Force the usage of RelWithDebInfo for the crypto driver regardless
+# of the specified build option
+set(SAVED_BUILD_TYPE ${CMAKE_BUILD_TYPE})
+set(CMAKE_BUILD_TYPE "RelWithDebInfo")
 add_subdirectory(${PLATFORM_DIR}/ext/target/arm/drivers/cc3xx cc3xx)
+set(CMAKE_BUILD_TYPE ${SAVED_BUILD_TYPE})
 
 target_include_directories(platform_s
     PUBLIC