automation: Enable parallel build with cppcheck analysis
PATCH 1/1 automation: Enable parallel build with cppcheck analysis
The limitation was fixed by the commit:45bfff651173d538239308648c6a6cd7cbe37172
Signed-off-by Michal Orzel <[email protected]>
--- automation/scripts/build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
automation/scripts/build +2 -4
@@ -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
Signature · 1 line
2.25.1
Quoted 8 lines · Michal Orzel
The limitation was fixed by the commit:
45bfff651173d538239308648c6a6cd7cbe37172Signed-off-by Michal Orzel <[email protected]>
Hi Michal,
Looks good!
Reviewed-by Luca Fancellu <[email protected]>
Quoted 24 lines
---
automation/scripts/build | 6 ++----1 file changed, 2 insertions(+), 4 deletions(-)automation/scripts/build +0
-0@@ -39,10 +39,8 @@ cp xen/.config xen-configmkdir -p binaries
if [[ "${CPPCHECK}" == "y" ]] && [[ "${HYPERVISOR_ONLY}" == "y" ]]; then
automation/scripts/build +2
-4- # 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/xenSignature · 1 line
2.25.1
Quoted 4 lines · Michal Orzel
The limitation was fixed by the commit:
45bfff651173d538239308648c6a6cd7cbe37172Signed-off-by Michal Orzel <[email protected]>
Quoted 24 lines
--- automation/scripts/build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)automation/scripts/build +2
-4@@ -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/xenSignature · 1 line
2.25.1