| #!/usr/bin/env bash |
| # |
| # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
| # |
| # SPDX-License-Identifier: BSD-3-Clause |
| # |
| |
| pre_tf_build() { |
| echo "Configure coverity to compare with trustedfirmware.org for MISRA defects." |
| |
| append_hook_var "cov_options" " ${coverity_default_checkers[*]}" |
| append_hook_var "cov_options" \ |
| " --coding-standard-config $ci_root/coverity/MISRA_c2012_1_ARM_TF.config" |
| |
| # Branch description |
| set_hook_var "cov_checker" "misra" |
| |
| set_hook_var "cov_golden_url" \ |
| "${cov_golden_url-https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git}" |
| |
| set_hook_var "cov_golden_ref" "${cov_golden_ref-integration}" |
| |
| # Print comparison report |
| set_hook_var "cov_run_type" "branch-report-compare" |
| } |