* [PATCH] devicetree: Expose dtbs_check and dt_binding_check some more
@ 2019-08-13 18:38 Stephen Boyd
2019-08-13 22:32 ` Rob Herring
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Boyd @ 2019-08-13 18:38 UTC (permalink / raw)
To: Rob Herring
Cc: linux-kernel, Masahiro Yamada, linux-kbuild, devicetree, linux-doc
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>
---
I didn't find this sent, so sending again!
Documentation/devicetree/writing-schema.md | 1 +
Makefile | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/writing-schema.md b/Documentation/devicetree/writing-schema.md
index dc032db36262..17ad67887fde 100644
--- a/Documentation/devicetree/writing-schema.md
+++ b/Documentation/devicetree/writing-schema.md
@@ -120,6 +120,7 @@ This will first run the `dt_binding_check` which generates the processed schema.
It is also possible to run checks with a single schema file by setting the
'DT_SCHEMA_FILES' variable to a specific schema file.
+`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 9be5834073f8..96bb28aa1c46 100644
--- a/Makefile
+++ b/Makefile
@@ -1503,8 +1503,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:'
--
Sent by a computer through tubes
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] devicetree: Expose dtbs_check and dt_binding_check some more
2019-08-13 18:38 [PATCH] devicetree: Expose dtbs_check and dt_binding_check some more Stephen Boyd
@ 2019-08-13 22:32 ` Rob Herring
2019-08-13 22:44 ` Stephen Boyd
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2019-08-13 22:32 UTC (permalink / raw)
To: Stephen Boyd
Cc: linux-kernel, Masahiro Yamada, Linux Kbuild mailing list,
devicetree, Linux Doc Mailing List
On Tue, Aug 13, 2019 at 12:38 PM Stephen Boyd <sboyd@kernel.org> wrote:
>
> 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>
> ---
>
> I didn't find this sent, so sending again!
You had. :)
>
> Documentation/devicetree/writing-schema.md | 1 +
> Makefile | 6 ++++--
> 2 files changed, 5 insertions(+), 2 deletions(-)
writing-schema.md got converted to rst, so I fixed up and applied.
Rob
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] devicetree: Expose dtbs_check and dt_binding_check some more
2019-08-13 22:32 ` Rob Herring
@ 2019-08-13 22:44 ` Stephen Boyd
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2019-08-13 22:44 UTC (permalink / raw)
To: Rob Herring
Cc: linux-kernel, Masahiro Yamada, Linux Kbuild mailing list,
devicetree, Linux Doc Mailing List
Quoting Rob Herring (2019-08-13 15:32:48)
> On Tue, Aug 13, 2019 at 12:38 PM Stephen Boyd <sboyd@kernel.org> wrote:
> >
> > 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>
> > ---
> >
> > I didn't find this sent, so sending again!
>
> You had. :)
Oh no, sorry! :(
>
> >
> > Documentation/devicetree/writing-schema.md | 1 +
> > Makefile | 6 ++++--
> > 2 files changed, 5 insertions(+), 2 deletions(-)
>
> writing-schema.md got converted to rst, so I fixed up and applied.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-13 22:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-13 18:38 [PATCH] devicetree: Expose dtbs_check and dt_binding_check some more Stephen Boyd
2019-08-13 22:32 ` Rob Herring
2019-08-13 22:44 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).