cppcheck: Update the build target configuration

This patchs aligns the build command for cppcheck with
latest cmake targets. an521 has been renamed to mps/an521

Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
Change-Id: I4cab9f6341a5baec5eacd8364ef4ad11d660fcac
diff --git a/run-cppcheck.sh b/run-cppcheck.sh
index 9c38957..0723204 100755
--- a/run-cppcheck.sh
+++ b/run-cppcheck.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 #-------------------------------------------------------------------------------
-# Copyright (c) 2018-2019, Arm Limited and Contributors. All rights reserved.
+# Copyright (c) 2018-2020, Arm Limited and Contributors. All rights reserved.
 #
 # SPDX-License-Identifier: BSD-3-Clause
 #
@@ -80,7 +80,7 @@
 echo
 echo '******* Generating compile_commands.json ***************'
 echo
-generate_project $(fix_win_path $(get_full_path ./)) "./" "cppcheck" "-DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DTFM_PLATFORM=an521 -DCMAKE_TOOLCHAIN_FILE=toolchain_GNUARM.cmake"
+generate_project $(fix_win_path $(get_full_path ./)) "./" "cppcheck" "-DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DTFM_PLATFORM=mps2/an521 -DCMAKE_TOOLCHAIN_FILE=toolchain_GNUARM.cmake"
 
 #Enter the build directory
 bdir=$(make_build_dir_name "./" "cppcheck")