Commit 740ce365 authored by Rob Herring's avatar Rob Herring

dt-bindings: Fix generated example files getting added to schemas

Commit 837158b8 ("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.

Fixes: 837158b8 ("dt-bindings: Check the examples against the schemas")
Reported-by: default avatarGuido Günther <agx@sigxcpu.org>
Tested-by: default avatarGuido Günther <agx@sigxcpu.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 609488bc
...@@ -19,7 +19,9 @@ quiet_cmd_mk_schema = SCHEMA $@ ...@@ -19,7 +19,9 @@ quiet_cmd_mk_schema = SCHEMA $@
DT_DOCS = $(shell \ DT_DOCS = $(shell \
cd $(srctree)/$(src) && \ 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)) DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment