Build: Add LLVM toolchain support for an521 only.
Support for other platforms will follow.
Signed-off-by: Anton Komlev <anton.komlev@arm.com>
Change-Id: Id036ecd78bf8e8909af30f78b2bfe5262b78c6b9
diff --git a/secure_fw/partitions/lib/runtime/crt_strlen.c b/secure_fw/partitions/lib/runtime/crt_strlen.c
new file mode 100644
index 0000000..7213cb0
--- /dev/null
+++ b/secure_fw/partitions/lib/runtime/crt_strlen.c
@@ -0,0 +1,17 @@
+/*
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
+ *
+ */
+
+#include <stddef.h>
+
+size_t strlen(const char *s)
+{
+ size_t idx = 0;
+
+ while (s[idx] != '\0') {
+ idx++;
+ }
+ return idx;
+}