dt-bindings: kbuild: Support partial matches with DT_SCHEMA_FILES
authorRob Herring <robh@kernel.org>
Mon, 28 Feb 2022 20:10:05 +0000 (14:10 -0600)
committerRob Herring <robh@kernel.org>
Thu, 3 Mar 2022 20:30:52 +0000 (14:30 -0600)
commit309d955985ee9e94697c197b7b489555f1ac7259
tree10f6dc8ac3d36861bd2e008ecd27afd529aa9e51
parentdca669354e6ff494222dfc461bed1087264f3755
dt-bindings: kbuild: Support partial matches with DT_SCHEMA_FILES

DT_SCHEMA_FILES is currently restricted to a list of exact files with
the full source tree path (i.e. Documentation/devicetree/bindings/...).
Loosen this requirement and let DT_SCHEMA_FILES be a partial match.

With this, checking all schema files in a directory is possible:

$ make DT_SCHEMA_FILES=/gpio/ dt_binding_check

Or all schema files with 'qcom' in the path or filename:

$ make DT_SCHEMA_FILES=qcom dt_binding_check

Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220228201006.1484903-1-robh@kernel.org
Documentation/devicetree/bindings/Makefile
Documentation/devicetree/bindings/writing-schema.rst