]> www.infradead.org Git - users/dwmw2/linux.git/commit
dt-bindings: Consider DT_SCHEMA_FILES when finding all json-schema
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 18 Oct 2021 10:54:48 +0000 (12:54 +0200)
committerRob Herring <robh@kernel.org>
Wed, 20 Oct 2021 18:34:42 +0000 (13:34 -0500)
commit378be0cca602cbee8aa441a14f836e9e41e25314
tree724ae38117b0d907fdede0f808f52422e2ae83c9
parent3985aa6ff3a81923a23a094a9f279c3a4959107f
dt-bindings: Consider DT_SCHEMA_FILES when finding all json-schema

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 and dt-doc-validate.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/174ab1d791b7bc65f3b0f11b72be13af1748c731.1634551582.git.geert+renesas@glider.be
[robh: Also use only DT_SCHEMA_FILES for dt-doc-validate]
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/Makefile