Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: don't anchor DT_SCHEMA_FILES to bindings directory

Commit 5e3ef4546819 ("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: 5e3ef4546819 ("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>

authored by

André Draszik and committed by
Rob Herring
93502421 716089b4

+4 -1
+4 -1
Documentation/devicetree/bindings/Makefile
··· 28 28 find_all_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \ 29 29 -name 'processed-schema*' \) 30 30 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)/|' 32 35 CHK_DT_DOCS := $(shell $(find_cmd)) 33 36 34 37 quiet_cmd_yamllint = LINT $(src)