Build: Add stub functions of system calls

GNU Arm compiler version greater equal than *11.3.Rel1*
has a linker issue that required system calls are missing,
such as _read and _write. Add stub functions of required
system calls to solve this issue.

Signed-off-by: Chendi Sun <chendi.sun@arm.com>
Change-Id: I4280284b0a002d5e7765ef6a64cffa7542eb1274
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 28baa9a..d4f4b63 100755
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -251,6 +251,8 @@
 add_library(tfm_test_app STATIC EXCLUDE_FROM_ALL)
 
 target_sources(tfm_test_app
+    PUBLIC
+        $<$<BOOL:${CONFIG_GNU_SYSCALL_STUB_ENABLED}>:${CMAKE_SOURCE_DIR}/platform/ext/common/syscalls_stub.c>
     PRIVATE
         $<$<NOT:$<BOOL:${CONFIG_TFM_ERPC_TEST_FRAMEWORK}>>:test_app.c>
 )