Build: Add support for building eRPC on TC
Add the necessary configuration files to build eRPC binaries
for TC2, TC3 and TC4.
Change-Id: If8c5f2a41ff3c9e470d0f5e88203d7f68f5ff9fd
Signed-off-by: David Vincze <david.vincze@arm.com>
diff --git a/erpc/platform/arm/rse/tc/tc2/config_erpc_target.h b/erpc/platform/arm/rse/tc/tc2/config_erpc_target.h
new file mode 100644
index 0000000..a62accb
--- /dev/null
+++ b/erpc/platform/arm/rse/tc/tc2/config_erpc_target.h
@@ -0,0 +1,14 @@
+/*
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
+ *
+ */
+
+/* Target side config file for running the eRPC test framework */
+
+#ifndef __CONFIG_ERPC_TARGET_H__
+#define __CONFIG_ERPC_TARGET_H__
+
+#define ERPC_UART Driver_USART0
+
+#endif /* __CONFIG_ERPC_TARGET_H__ */
diff --git a/erpc/platform/arm/rse/tc/tc3/config_erpc_target.h b/erpc/platform/arm/rse/tc/tc3/config_erpc_target.h
new file mode 100644
index 0000000..a62accb
--- /dev/null
+++ b/erpc/platform/arm/rse/tc/tc3/config_erpc_target.h
@@ -0,0 +1,14 @@
+/*
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
+ *
+ */
+
+/* Target side config file for running the eRPC test framework */
+
+#ifndef __CONFIG_ERPC_TARGET_H__
+#define __CONFIG_ERPC_TARGET_H__
+
+#define ERPC_UART Driver_USART0
+
+#endif /* __CONFIG_ERPC_TARGET_H__ */
diff --git a/erpc/platform/arm/rse/tc/tc4/config_erpc_target.h b/erpc/platform/arm/rse/tc/tc4/config_erpc_target.h
new file mode 100644
index 0000000..a62accb
--- /dev/null
+++ b/erpc/platform/arm/rse/tc/tc4/config_erpc_target.h
@@ -0,0 +1,14 @@
+/*
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
+ *
+ */
+
+/* Target side config file for running the eRPC test framework */
+
+#ifndef __CONFIG_ERPC_TARGET_H__
+#define __CONFIG_ERPC_TARGET_H__
+
+#define ERPC_UART Driver_USART0
+
+#endif /* __CONFIG_ERPC_TARGET_H__ */
diff --git a/erpc/tfm_reg_tests/CMakeLists.txt b/erpc/tfm_reg_tests/CMakeLists.txt
index 2b02a0c..bb7688d 100644
--- a/erpc/tfm_reg_tests/CMakeLists.txt
+++ b/erpc/tfm_reg_tests/CMakeLists.txt
@@ -77,6 +77,7 @@
# exported by TF-M build.
set(INTERFACE_SRC_DIR ${CONFIG_SPE_PATH}/interface/src)
set(INTERFACE_INC_DIR ${CONFIG_SPE_PATH}/interface/include)
+set(PLATFORM_INC_DIR ${CONFIG_SPE_PATH}/platform/include) # For crypto accelerator configuration
# INTERFACE because there might be no API files below
add_library(tfm_api_ns INTERFACE)
@@ -95,6 +96,7 @@
target_include_directories(tfm_api_ns
INTERFACE
${INTERFACE_INC_DIR}
+ ${PLATFORM_INC_DIR}
$<$<BOOL:${PLATFORM_DEFAULT_CRYPTO_KEYS}>:${INTERFACE_INC_DIR}/crypto_keys>
)