[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] build: correct cppcheck-misra make rule


  • To: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Fri, 9 Sep 2022 15:16:06 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 09 Sep 2022 14:16:28 +0000
  • Ironport-data: A9a23:4DHLuqCO8nFb4hVWkefolDw43h7EJoYKCyr0ZL5iHsvXIB87LLMz+jq9RysF0KIuFCQ9jkkCHt/CeD6iZW5agGHhqyaHLhRGR9peelVxHpIyJc6eOtjwBKd1URbCzPQDRHrx1H6Jld1w4m/vyXYSixIqJvIz165qrO+WzwHGuhvt6CgDh2Qqx5Ovvt7i0MZ0hE0x3O9ZBis87QW4iLpQkKHh0o1CSEharG8DdL/Ec9A5tso5FwTPJVFgG7RLZ5TLn6afdlqCo+AF53jWG3tPMtUJvNaAklQmPq+3UA5RlA1xg8hceBdaCWHZLX/gkDOQeJyLb5/utzlCObB/jhHtkLKBPONxFVcsEn435cPBL/too+94px9OvoQ6NR/r1BhySDdBZkb3eHCS1MwOAWFPuAcM8Y+xJqDnKfk5T6Q4VyNTQg6NCJ5UBsWFsAcSPYy2K5jhT232JQugJdewhl14HMngtQg9PZAnLJqecAWau7qcWdviUoK6cKHSv9TiRlaxul2zbbvbp3Leu8Bb444GiaaEHysrnpTCDihiP2ay6+RHmv0Yz69MitFoZatQEhxOgvBIbXiPEnLVaeGPQEkfDkWbv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YNsUIqofPJ36FUCpMC8u4sGvM+Dzvk09R65oR9vf+oUqHfCJiz9nme7fS6DNbMY3Gg/gvuL3TFoS6UF9jeceL2JF6/Nutc2IcSnAcdgJ
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Sep 09, 2022 at 01:50:38PM +0000, Bertrand Marquis wrote:
> > On 9 Sep 2022, at 14:41, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> > --- a/xen/Makefile
> > +++ b/xen/Makefile
> > @@ -746,11 +746,9 @@ cppcheck-version:
> > # documentation file. Also generate a json file with the right arguments for
> > # 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)$(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
> > +.PRECIOUS: %-misra.json
> > +%-misra.txt %-misra.json: $(XEN_ROOT)/docs/misra/rules.rst 
> > $(srctree)/tools/convert_misra_doc.py
> > +   $(Q)$(PYTHON) $(srctree)/tools/convert_misra_doc.py -i $< -o 
> > $*-misra.txt -j $*-misra.json
> 
> As far as I know, this is not saying to make that both files are generated by 
> this rule,
> but that this rule can generate both files so nothing is telling make here 
> that calling
> it once is enough I think.

A comment could be added, the same one as the one used for syncconfig:
    # This exploits the 'multi-target pattern rule' trick.
    # convert_misra_doc.py should be executed only once to make all the targets.

Cheers,

-- 
Anthony PERARD



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.