Build: Fix stm32wba65i_dk platform build issues

- Use `tfm_s_bin` target, aligning with changes in the GNUARM toolchain.
- Updated logic for emulating `mcuboot_config.h` used by FWU partition.
- Move `BL2` before `secure_fw` because FWU partition depends on MCUBoot.

Signed-off-by: Anton Komlev <anton.komlev@arm.com>
Change-Id: I4a2935d68df52e9194c21ab7cf20aeecc63c5bb2
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ecbae1d..1569ecb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,6 +37,10 @@
 
 project("Trusted Firmware M" VERSION ${TFM_VERSION} LANGUAGES C CXX ASM)
 
+if(BL2)
+    add_subdirectory(bl2)
+endif()
+
 add_subdirectory(lib/backtrace)
 add_subdirectory(lib/ext)
 add_subdirectory(lib/fih)
@@ -45,11 +49,7 @@
 add_subdirectory(lib/tfm_vprintf)
 add_subdirectory(tools)
 add_subdirectory(secure_fw)
-
 add_subdirectory(interface)
-if(BL2)
-    add_subdirectory(bl2)
-endif()
 
 if(BL1 AND PLATFORM_DEFAULT_BL1)
     add_subdirectory(bl1/bl1_2)