From: Stephen Boyd Date: Tue, 13 Aug 2019 18:38:25 +0000 (-0700) Subject: devicetree: Expose dtbs_check and dt_binding_check some more X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7aa8dd91da63af535b3b9153257e089254982b7e;p=openwrt%2Fstaging%2Fblogic.git 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 Cc: Cc: Cc: Signed-off-by: Stephen Boyd [robh: fix-up due to .md to .rst conversion] Signed-off-by: Rob Herring --- diff --git a/Documentation/devicetree/writing-schema.rst b/Documentation/devicetree/writing-schema.rst index 8f71d1e2ac52..f4a638072262 100644 --- a/Documentation/devicetree/writing-schema.rst +++ b/Documentation/devicetree/writing-schema.rst @@ -141,6 +141,7 @@ It is also possible to run checks with a single schema file by setting the :: + make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/trivial-devices.yaml make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/trivial-devices.yaml diff --git a/Makefile b/Makefile index fa0fbe7851ea..e99bd31e5139 100644 --- a/Makefile +++ b/Makefile @@ -1506,8 +1506,10 @@ help: @echo '' @$(if $(dtstree), \ echo 'Devicetree:'; \ - echo '* dtbs - Build device tree blobs for enabled boards'; \ - echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \ + echo '* dtbs - Build device tree blobs for enabled boards'; \ + echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \ + echo ' dt_binding_check - Validate device tree binding documents'; \ + echo ' dtbs_check - Validate device tree source files';\ echo '') @echo 'Userspace tools targets:'