Re: [PATCH] dt-bindings: kbuild: Support partial matches with DT_SCHEMA_FILES

From: Krzysztof Kozlowski
Date: Thu Mar 03 2022 - 03:51:17 EST


On 28/02/2022 21:10, Rob Herring wrote:
> 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@xxxxxxxxxx>
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
> ---
> Documentation/devicetree/bindings/Makefile | 15 +++++----------
> .../devicetree/bindings/writing-schema.rst | 9 +++++----
> 2 files changed, 10 insertions(+), 14 deletions(-)
>


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx>


Best regards,
Krzysztof