Add CODE_COVERAGE_EN when required coverage bin
Signed-off-by: Karl Zhang <karl.zhang@arm.com>
Change-Id: I08b92cfb5a52955d61a479af2b301cf5f1482d76
diff --git a/run-build.sh b/run-build.sh
index d32b452..5bfd354 100755
--- a/run-build.sh
+++ b/run-build.sh
@@ -35,7 +35,7 @@
build_commands=$(python3 tf-m-ci-scripts/configs.py -b -g all $CONFIG_NAME)
if [ $CODE_COVERAGE_EN = "TRUE" ] && [[ $CONFIG_NAME =~ "GNUARM" ]] ; then
- build_commands=${build_commands/-DCOMPILER=GNUARM/-DCOMPILER=GNUARM -DCODE_COVERAGE_EN=TRUE}
+ build_commands=${build_commands/toolchain_GNUARM.cmake/toolchain_GNUARM.cmake -DTFM_CODE_COVERAGE=True}
echo "Flag: Add compiler flag for build with code coverage supported."
echo $build_commands
fi