Build: Update build configs to enable RAM FS on MUSCA B1 and STM

TF-M configs ITS_RAM_FS & PS_RAM_FS is now controlled by header file.
The one in CMake does not work any more. This patch uses two TF-M
patches to update the RAM FS settings in TF-M for MUSCA B1 and STM32.

This patch also enable OTP_NV_COUNTERS_RAM_EMULATION for MUSCA B1, to
avoid MCUBOOT using flash when doing OTP.

Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I1e4b6d2f0ce84ae640d516ca6b677f19c14fd1f4
diff --git a/build_helper/platform_settings/0002-STM32-Enable-emulated-RAM-FS-for-ITS-PS.patch b/build_helper/platform_settings/0002-STM32-Enable-emulated-RAM-FS-for-ITS-PS.patch
new file mode 100644
index 0000000..74d432c
--- /dev/null
+++ b/build_helper/platform_settings/0002-STM32-Enable-emulated-RAM-FS-for-ITS-PS.patch
@@ -0,0 +1,29 @@
+From 010d998a44e77edfc167e1a10518afb554df8384 Mon Sep 17 00:00:00 2001
+From: Xinyu Zhang <xinyu.zhang@arm.com>
+Date: Fri, 23 Dec 2022 17:20:20 +0800
+Subject: [PATCH 2/2] STM32: Enable emulated RAM FS for ITS & PS
+
+Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
+Change-Id: I25262b1822ff93edb0b54445c6610ee491084294
+---
+ platform/ext/target/stm/stm32l562e_dk/config_tfm_target.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/platform/ext/target/stm/stm32l562e_dk/config_tfm_target.h b/platform/ext/target/stm/stm32l562e_dk/config_tfm_target.h
+index f90984a08..69174cef2 100644
+--- a/platform/ext/target/stm/stm32l562e_dk/config_tfm_target.h
++++ b/platform/ext/target/stm/stm32l562e_dk/config_tfm_target.h
+@@ -12,4 +12,10 @@
+ #undef CRYPTO_NV_SEED
+ #define CRYPTO_NV_SEED                         0
+ 
++#undef ITS_RAM_FS
++#define ITS_RAM_FS                             1
++
++#undef PS_RAM_FS
++#define PS_RAM_FS                              1
++
+ #endif /* __CONFIG_TFM_TARGET_H__ */
+-- 
+2.25.1
+