SCF : Add manual static check framework

This patch sets up the structure for a basic static check framework for
TFM. The scripts should be called from the TFM repo and reports from the
tools will be stored under a check_reports directory in the TFM repo.
The cppcheck tool is added in this patch.

Signed-off-by: Hugo L'Hostis <hugo.lhostis@arm.com>
Change-Id: I56e648abf2c0c04cce0da3a3535481164231499f
diff --git a/static_checks/cppcheck/setup.sh b/static_checks/cppcheck/setup.sh
new file mode 100755
index 0000000..4eb3693
--- /dev/null
+++ b/static_checks/cppcheck/setup.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+#-------------------------------------------------------------------------------
+# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+set -e
+
+if [ "$EUID" -ne 0 ]
+  then echo "Please run as root"
+  exit
+else
+  wget -q https://github.com/danmar/cppcheck/archive/refs/tags/2.3.tar.gz -O /tmp/cppcheck.tar.gz
+  tar -xf /tmp/cppcheck.tar.gz -C /tmp
+  cd /tmp/cppcheck-*
+  make FILESDIR=/usr/share/cppcheck install
+fi
+