]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dt-bindings: kbuild: Support single binding targets
authorRob Herring (Arm) <robh@kernel.org>
Mon, 8 Dec 2025 22:43:03 +0000 (16:43 -0600)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 17 Dec 2025 15:16:14 +0000 (09:16 -0600)
commit400fbf4b5870f42b651371303730290ca7a8dd78
tree5f66278dd87c5f4553cb6e74d0ebd80368b65e77
parent1a0c2bf998bb90e1d7450ad6b3b47f9e428375a7
dt-bindings: kbuild: Support single binding targets

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.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20251208224304.2907913-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/Makefile
Documentation/devicetree/bindings/writing-schema.rst
Makefile