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 <michal.simek@amd.com> Fixes: 5e3ef45 ("dt-bindings: ignore paths outside kernel for DT_SCHEMA_FILES") Closes: https://lore.kernel.org/all/827695c3-bb33-4a86-8586-2c7323530398@amd.com/ Cc: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: André Draszik <andre.draszik@linaro.org> Tested-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/20240116062731.2810067-1-git@andred.net Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 716089b commit 9350242

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • Documentation/devicetree/bindings

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)