[PATCH 0/2] dt-bindings: DTB based validation
From: Rob Herring
Date: Thu Mar 03 2022 - 17:43:21 EST
This series switches the kernel's DT schema validation from YAML encoded
DT files to using DTB files directly. See patch 2 for the full reasoning
of why. The diffstat also shows this is a nice simplification (at least
from the kernel side). Patch 1 is further reworking of how
DT_SCHEMA_FILES works and builds on [1].
Overall, the build time is about the same (still slow) though we do save
a dtc call for dtbs_check. Extracting the type information is not cached
in any way, so there's some opportunity for a slight optimization there.
Switching to DTB validation found various issues in the bindings and
examples. Patches for those issues have already been posted and applied
over the last month or so.
Rob
[1] https://lore.kernel.org/all/20220228201006.1484903-1-robh@xxxxxxxxxx/
Rob Herring (2):
dt-bindings: kbuild: Pass DT_SCHEMA_FILES to dt-validate
dt-bindings: kbuild: Use DTB files for validation
Documentation/devicetree/bindings/Makefile | 35 ++++---------------
.../devicetree/bindings/writing-schema.rst | 12 -------
scripts/Makefile.lib | 23 +++++-------
scripts/dtc/Makefile | 13 -------
scripts/dtc/update-dtc-source.sh | 2 +-
5 files changed, 15 insertions(+), 70 deletions(-)
--
2.32.0