Skip to content

Commit 5fa98c2

Browse files
committed
dt-bindings: Fix dt_binding_check target for in tree builds
On in tree builds, subsequent builds will incorrectly include the intermediate file 'processed-schema.yaml' with the input schema files resulting in a build error. Update the find command to ignore processed-schema.yaml. Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 75a080c commit 5fa98c2

File tree

1 file changed

+5
-1
lines changed
  • Documentation/devicetree/bindings

1 file changed

+5
-1
lines changed

Documentation/devicetree/bindings/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ extra-y += $(DT_TMP_SCHEMA)
1717
quiet_cmd_mk_schema = SCHEMA $@
1818
cmd_mk_schema = $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ $(filter-out FORCE, $^)
1919

20-
DT_DOCS = $(shell cd $(srctree)/$(src) && find * -name '*.yaml')
20+
DT_DOCS = $(shell \
21+
cd $(srctree)/$(src) && \
22+
find * \( -name '*.yaml' ! -name $(DT_TMP_SCHEMA) \) \
23+
)
24+
2125
DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS))
2226

2327
extra-y += $(patsubst $(src)/%.yaml,%.example.dts, $(DT_SCHEMA_FILES))

0 commit comments

Comments
 (0)