Re: [PATCH] dt-bindings: kbuild: Support single binding targets

From: Krzysztof Kozlowski
Date: Tue Dec 16 2025 - 01:39:13 EST


On Mon, Dec 08, 2025 at 04:43:03PM -0600, Rob Herring (Arm) wrote:
> Running the full 'make dt_binding_check' is slow. A shortcut is to set
> DT_SCHEMA_FILES env variable to a substring of DT schema files to test.
> It both limits which examples are validated and which schemas are used
> to validate the examples. This is a problem because errors from other
> schemas are missed. What makes validation slow is checking all examples,
> so we really just need a way to test a single example.
>
> Add a %.yaml target to validate the schema and validate the example:
>
> make example-schema.yaml
>
> The behavior for 'make dt_binding_check DT_SCHEMA_FILES=example-schema'
> is unchanged. Really it should mirror dtbs_check and validate all the
> examples with a subset of schemas, but there are lots of users of
> expecting the existing behavior.
>
> Signed-off-by: Rob Herring (Arm) <robh@xxxxxxxxxx>
> ---
> Documentation/devicetree/bindings/Makefile | 5 ++++-
> .../devicetree/bindings/writing-schema.rst | 12 ++++++++----
> Makefile | 14 ++++++++++----
> 3 files changed, 22 insertions(+), 9 deletions(-)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>

Best regards,
Krzysztof