Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

devicetree: Expose dtbs_check and dt_binding_check some more

It wasn't obvious that this was a command to run based on 'make help',
so add it to the top-level help for devicetree builds. Also, add an
example to the documentation to show that db_binding_check can be run
with DT_SCHEMA_FILES= to only check one schema file instead of all of
them.

Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: <linux-kbuild@vger.kernel.org>
Cc: <devicetree@vger.kernel.org>
Cc: <linux-doc@vger.kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
[robh: fix-up due to .md to .rst conversion]
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Stephen Boyd and committed by
Rob Herring
7aa8dd91 0d530aa6

+5 -2
+1
Documentation/devicetree/writing-schema.rst
··· 141 141 142 142 :: 143 143 144 + make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/trivial-devices.yaml 144 145 make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/trivial-devices.yaml 145 146 146 147
+4 -2
Makefile
··· 1506 1506 @echo '' 1507 1507 @$(if $(dtstree), \ 1508 1508 echo 'Devicetree:'; \ 1509 - echo '* dtbs - Build device tree blobs for enabled boards'; \ 1510 - echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \ 1509 + echo '* dtbs - Build device tree blobs for enabled boards'; \ 1510 + echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \ 1511 + echo ' dt_binding_check - Validate device tree binding documents'; \ 1512 + echo ' dtbs_check - Validate device tree source files';\ 1511 1513 echo '') 1512 1514 1513 1515 @echo 'Userspace tools targets:'