[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2] tools: use $(PYTHON) to call cppcheck tools
When calling python tools to convert misra documentation or merge cppcheck xml files, use $(PYTHON). While there fix misra document conversion script to be executable. Fixes: 57caa53753 (xen: Add MISRA support to cppcheck make rule) Fixes: 43aa3f6e72 xen/build: Add cppcheck and cppcheck-html make rules Signed-off-by: Bertrand Marquis <bertrand.marquis@xxxxxxx> --- Changes in v2: - use $(PYTHON) in Makefile to call convert misra doc script - use $(PYTHON) in Makefile to call merge cppcheck script - change title as mode change is only a small part - add "fixes" for the merge change xen/Makefile | 4 ++-- xen/tools/convert_misra_doc.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 xen/tools/convert_misra_doc.py diff --git a/xen/Makefile b/xen/Makefile index 3d926e1015..69b4dc960f 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -703,7 +703,7 @@ cmd_cppcheck_xml = $(CPPCHECK) -v -q --xml $(CPPCHECKFLAGS) \ --output-file=$@ $< quiet_cmd_merge_cppcheck_reports = CPPCHECK-MERGE $@ -cmd_merge_cppcheck_reports = $(srctree)/tools/merge_cppcheck_reports.py $^ $@ +cmd_merge_cppcheck_reports = $(PYTHON) $(srctree)/tools/merge_cppcheck_reports.py $^ $@ quiet_cmd_cppcheck_html = CPPCHECK-HTML $< cmd_cppcheck_html = $(CPPCHECK_HTMLREPORT) --file=$< --source-dir=$(srctree) \ @@ -742,7 +742,7 @@ cppcheck-version: # cppcheck in json format including the list of rules to ignore. # cppcheck-misra.txt: $(XEN_ROOT)/docs/misra/rules.rst $(srctree)/tools/convert_misra_doc.py - $(Q)$(srctree)/tools/convert_misra_doc.py -i $< -o $@ -j $(@:.txt=.json) + $(Q)$(PYTHON) $(srctree)/tools/convert_misra_doc.py -i $< -o $@ -j $(@:.txt=.json) # convert_misra_doc is generating both files. cppcheck-misra.json: cppcheck-misra.txt diff --git a/xen/tools/convert_misra_doc.py b/xen/tools/convert_misra_doc.py old mode 100644 new mode 100755 -- 2.25.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |