From: Michal Orzel Date: Thu, 18 May 2023 12:24:15 +0000 (+0200) Subject: automation: Enable parallel build with cppcheck analysis X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cca2361947b3c9851b3ded6e43cc48caf5258eee;p=people%2Froyger%2Fxen.git automation: Enable parallel build with cppcheck analysis The limitation was fixed by the commit: 45bfff651173d538239308648c6a6cd7cbe37172 Signed-off-by: Michal Orzel Reviewed-by: Luca Fancellu Acked-by: Stefano Stabellini --- diff --git a/automation/scripts/build b/automation/scripts/build index 9085cba352..38c48ae6d8 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -39,10 +39,8 @@ cp xen/.config xen-config mkdir -p binaries if [[ "${CPPCHECK}" == "y" ]] && [[ "${HYPERVISOR_ONLY}" == "y" ]]; then - # Cppcheck analysis invokes Xen-only build. - # Known limitation: cppcheck generates inconsistent reports when running - # in parallel mode, therefore do not specify -j. - xen/scripts/xen-analysis.py --run-cppcheck --cppcheck-misra + # Cppcheck analysis invokes Xen-only build + xen/scripts/xen-analysis.py --run-cppcheck --cppcheck-misra -- -j$(nproc) # Preserve artefacts cp xen/xen binaries/xen