Messages in this thread | | | Date | Wed, 20 Oct 2021 13:33:57 -0500 | From | Rob Herring <> | Subject | Re: [PATCH 2/2] dt-bindings: Consider DT_SCHEMA_FILES when finding all json-schema |
| |
On Mon, 18 Oct 2021 12:54:48 +0200, Geert Uytterhoeven wrote: > Setting DT_SCHEMA_FILES allows the user to restrict the > "dt_binding_check" make target to a specified set of DT binding files. > However, yamllint is still run on all available files, which not only > takes time, but also outputs warnings for other binding files the > developer is not interested in. > > Fix this by renaming "find_cmd" to "find_all_cmd", introducing a new > "find_cmd" to only return the files specified by DT_SCHEMA_FILES (if > present), and using the latter for yamllint.
We can also do the same thing on dt-doc-validate since checking and preprocessing schemas are separate steps, so I did while applying.
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > --- > v2: > - Introduce find_all_cmd, > - Only use the restricted set for yamllint. > --- > Documentation/devicetree/bindings/Makefile | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) >
| |