Re: [PATCH 2/2] dt-bindings: Consider DT_SCHEMA_FILES when finding all json-schema
From: Rob Herring <robh@kernel.org>
Date: 2021-10-20 18:34:03
Also in:
lkml
From: Rob Herring <robh@kernel.org>
Date: 2021-10-20 18:34:03
Also in:
lkml
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(-)