[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] tools: use $(PYTHON) to call cppcheck tools
commit 7c5b25c3038abc2dc8353f56ed67d2c4fcd43d79 Author: Bertrand Marquis <bertrand.marquis@xxxxxxx> AuthorDate: Wed Aug 3 12:57:02 2022 +0100 Commit: Julien Grall <jgrall@xxxxxxxxxx> CommitDate: Thu Aug 4 17:49:25 2022 +0100 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: 57caa5375321 ("xen: Add MISRA support to cppcheck make rule") Fixes: 43aa3f6e72d3 ("xen/build: Add cppcheck and cppcheck-html make rules") Signed-off-by: Bertrand Marquis <bertrand.marquis@xxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/Makefile | 4 ++-- xen/tools/convert_misra_doc.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |