dt-bindings: kbuild: Split targets out to separate rules
authorRob Herring <robh@kernel.org>
Fri, 5 Apr 2024 22:56:02 +0000 (17:56 -0500)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 23 Apr 2024 04:21:57 +0000 (13:21 +0900)
commit6552b72c3a4e8567c8f5fb2a4f6f792e2ed5dde1
tree1f86c51bd0ec4f85478d438b80427388ae367bcd
parentda6011a648687b5318b3705374e6120da0ec9b9a
dt-bindings: kbuild: Split targets out to separate rules

Masahiro pointed out the use of if_changed_rule is incorrect and command
line changes are not correctly accounted for.

To fix this, split up the DT binding validation target,
dt_binding_check, into multiple rules for each step: yamllint, schema
validtion with meta-schema, and building the processed schema.

One change in behavior is the yamllint or schema validation will be
re-run again when there are warnings present.

Reported-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/all/20220817152027.16928-1-masahiroy@kernel.org/
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Documentation/devicetree/bindings/Makefile