dt-bindings: Fix generated example files getting added to schemas
Rob Herring
maintainerPATCH 1/1 dt-bindings: Fix generated example files getting added to schemas
Commit 837158b847a4 ("dt-bindings: Check the examples against the schemas") started generating YAML encoded DT files to validate the examples against the schema. When running 'make dt_binding_check' in tree after the 1st time, the generated example .dt.yaml files are mistakenly added to the list of schema files. Exclude *.example.dt.yaml files from the search for schema files.
--- Documentation/devicetree/bindings/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/Makefile +3 -1
@@ -19,7 +19,9 @@ quiet_cmd_mk_schema = SCHEMA $@ DT_DOCS = $(shell \ cd $(srctree)/$(src) && \ - find * \( -name '*.yaml' ! -name $(DT_TMP_SCHEMA) \) \ + find * \( -name '*.yaml' ! \ + -name $(DT_TMP_SCHEMA) ! \ + -name '*.example.dt.yaml' \) \ ) DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS))
Signature · 1 line
2.20.1
Hi,
Quoted 19 lines · Rob Herring
Commit
837158b847a4("dt-bindings: Check the examples against the schemas") started generating YAML encoded DT files to validate the examples against the schema. When running 'makedt_binding_check' in tree after the 1st time, the generated example.dt.yamlfiles are mistakenly added to the list of schema files. Exclude *.example.dt.yaml files from the search for schema files.Fixes 837158b847a4 ("dt-bindings: Check the examples against the schemas")Reported-by Guido Günther <[email protected]>Signed-off-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/Makefile +0
-0
Documentation/devicetree/bindings/Makefile quiet_cmd_mk_schema = SCHEMA $@ · line 27
Quoted 10 lines
Documentation/devicetree/bindings/Makefile +3
-1@@ -19,7 +19,9 @@ quiet_cmd_mk_schema = SCHEMA $@ DT_DOCS = $(shell \ cd $(srctree)/$(src) && \ - find * \( -name '*.yaml' ! -name $(DT_TMP_SCHEMA) \) \ + find * \( -name '*.yaml' ! \ + -name $(DT_TMP_SCHEMA) ! \ + -name '*.example.dt.yaml' \) \ ) DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS))
this fixes checking twice in a row for me. Thanks!
-- Guido