RSS: Fix bug with PS OTP counters option
Add the definition to all platform_ targets, so that the LCM OTP layout
isn't different in different boot stages (which would cause data to be
written to the wrong offset).
Change-Id: I3a7b30b4e399be7a46736505f240b744f43422b6
Signed-off-by: Raef Coles <raef.coles@arm.com>
diff --git a/platform/ext/target/arm/rss/common/CMakeLists.txt b/platform/ext/target/arm/rss/common/CMakeLists.txt
index 3ebaf9c..2ff4466 100644
--- a/platform/ext/target/arm/rss/common/CMakeLists.txt
+++ b/platform/ext/target/arm/rss/common/CMakeLists.txt
@@ -26,6 +26,7 @@
$<$<BOOL:${RSS_USE_HOST_FLASH}>:RSS_USE_HOST_FLASH>
$<$<BOOL:${RSS_GPT_SUPPORT}>:RSS_GPT_SUPPORT>
$<$<BOOL:${RSS_HAS_EXPANSION_PERIPHERALS}>:RSS_HAS_EXPANSION_PERIPHERALS>
+ $<$<BOOL:${PLATFORM_HAS_PS_NV_OTP_COUNTERS}>:PLATFORM_HAS_PS_NV_OTP_COUNTERS>
)
#========================= Platform common defs ===============================#
@@ -186,7 +187,6 @@
# Needed for DMA-350 library
CMSIS_device_header="rss.h"
$<$<BOOL:${PLATFORM_SVC_HANDLERS}>:PLATFORM_SVC_HANDLERS>
- $<$<BOOL:${PLATFORM_HAS_PS_NV_OTP_COUNTERS}>:PLATFORM_HAS_PS_NV_OTP_COUNTERS>
)
target_compile_options(platform_s