Documentation/devicetree/bindings/writing-schema.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
From: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Variable DT_SCHEMA_FILES can specify multiple files or patterns, but the
documentation does not indicate how to do it. Each entry needs to be
separated by a column symbol ':'.
Add an example to make it more obvious how to specify multiple
DT_SCHEMA_FILES.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
---
Link: [v1] https://lore.kernel.org/all/20230928190259.3497563-1-hugo@hugovil.com/
Changes for V2:
- Change description to indicate that multiple patterns can also be specified
Documentation/devicetree/bindings/writing-schema.rst | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/writing-schema.rst b/Documentation/devicetree/bindings/writing-schema.rst
index 4a381d20f2b4..0a6cf19a1459 100644
--- a/Documentation/devicetree/bindings/writing-schema.rst
+++ b/Documentation/devicetree/bindings/writing-schema.rst
@@ -159,11 +159,14 @@ It is possible to run both in a single command::
make dt_binding_check dtbs_check
It is also possible to run checks with a subset of matching schema files by
-setting the ``DT_SCHEMA_FILES`` variable to a specific schema file or pattern.
+setting the ``DT_SCHEMA_FILES`` variable to 1 or more specific schema files or
+patterns (partial match of a fixed string). Each file or pattern should be
+separated by ':'.
::
make dt_binding_check DT_SCHEMA_FILES=trivial-devices.yaml
+ make dt_binding_check DT_SCHEMA_FILES=trivial-devices.yaml:rtc.yaml
make dt_binding_check DT_SCHEMA_FILES=/gpio/
make dtbs_check DT_SCHEMA_FILES=trivial-devices.yaml
base-commit: 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa
--
2.39.2
On Mon, 02 Oct 2023 14:38:12 -0400, Hugo Villeneuve wrote: > From: Hugo Villeneuve <hvilleneuve@dimonoff.com> > > Variable DT_SCHEMA_FILES can specify multiple files or patterns, but the > documentation does not indicate how to do it. Each entry needs to be > separated by a column symbol ':'. > > Add an example to make it more obvious how to specify multiple > DT_SCHEMA_FILES. > > Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> > --- > Link: [v1] https://lore.kernel.org/all/20230928190259.3497563-1-hugo@hugovil.com/ > > Changes for V2: > - Change description to indicate that multiple patterns can also be specified > > Documentation/devicetree/bindings/writing-schema.rst | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > Applied, thanks!
© 2016 - 2025 Red Hat, Inc.