Skip to content

Commit 9350242

Browse files
andredrobherring
authored andcommitted
dt-bindings: don't anchor DT_SCHEMA_FILES to bindings directory
Commit 5e3ef45 ("dt-bindings: ignore paths outside kernel for DT_SCHEMA_FILES") anchored all searches to the bindings directory (since bindings only exist below that), but it turns out this is not always desired. Just anchor to the base kernel source directory and while at it, break the overly long line for legibility. Reported-by: Michal Simek <[email protected]> Fixes: 5e3ef45 ("dt-bindings: ignore paths outside kernel for DT_SCHEMA_FILES") Closes: https://lore.kernel.org/all/[email protected]/ Cc: Masahiro Yamada <[email protected]> Signed-off-by: André Draszik <[email protected]> Tested-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 716089b commit 9350242

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

Documentation/devicetree/bindings/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ $(obj)/%.example.dts: $(src)/%.yaml check_dtschema_version FORCE
2828
find_all_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \
2929
-name 'processed-schema*' \)
3030

31-
find_cmd = $(find_all_cmd) | sed 's|^$(srctree)/$(src)/||' | grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | sed 's|^|$(srctree)/$(src)/|'
31+
find_cmd = $(find_all_cmd) | \
32+
sed 's|^$(srctree)/||' | \
33+
grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | \
34+
sed 's|^|$(srctree)/|'
3235
CHK_DT_DOCS := $(shell $(find_cmd))
3336

3437
quiet_cmd_yamllint = LINT $(src)

0 commit comments

Comments
 (0)