]> xenbits.xensource.com Git - xen.git/commitdiff
automation: Enable parallel build with cppcheck analysis
authorMichal Orzel <michal.orzel@amd.com>
Thu, 18 May 2023 12:24:15 +0000 (14:24 +0200)
committerStefano Stabellini <stefano.stabellini@amd.com>
Thu, 25 May 2023 01:20:03 +0000 (18:20 -0700)
The limitation was fixed by the commit:
45bfff651173d538239308648c6a6cd7cbe37172

Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
automation/scripts/build

index 9085cba3528187ab31614f301b59af8d15a9674e..38c48ae6d8263a63c3254bf59dcbbf0864b63cbb 100755 (executable)
@@ -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<n>.
-    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