diff mbox series

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

Message ID 20240116062731.2810067-1-git@andred.net
State Accepted
Headers show
Series dt-bindings: don't anchor DT_SCHEMA_FILES to bindings directory | expand

Checks

Context Check Description
robh/checkpatch warning total: 0 errors, 1 warnings, 11 lines checked
robh/patch-applied fail build log

Commit Message

André Draszik Jan. 16, 2024, 6:27 a.m. UTC
From: André Draszik <andre.draszik@linaro.org>

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>
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>
---
 Documentation/devicetree/bindings/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Michal Simek Jan. 16, 2024, 7:41 a.m. UTC | #1
On 1/16/24 07:27, André Draszik wrote:
> From: André Draszik <andre.draszik@linaro.org>
> 
> 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>
> 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>
> ---
>   Documentation/devicetree/bindings/Makefile | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile
> index 2323fd5b7cda..129cf698fa8a 100644
> --- a/Documentation/devicetree/bindings/Makefile
> +++ b/Documentation/devicetree/bindings/Makefile
> @@ -28,7 +28,10 @@ $(obj)/%.example.dts: $(src)/%.yaml check_dtschema_version FORCE
>   find_all_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \
>   		-name 'processed-schema*' \)
>   
> -find_cmd = $(find_all_cmd) | sed 's|^$(srctree)/$(src)/||' | grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | sed 's|^|$(srctree)/$(src)/|'
> +find_cmd = $(find_all_cmd) | \
> +		sed 's|^$(srctree)/||' | \
> +		grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | \
> +		sed 's|^|$(srctree)/|'
>   CHK_DT_DOCS := $(shell $(find_cmd))
>   
>   quiet_cmd_yamllint = LINT    $(src)


Tested-by: Michal Simek <michal.simek@amd.com>

Thanks,
Michal
Rob Herring (Arm) Jan. 16, 2024, 7:30 p.m. UTC | #2
On Tue, 16 Jan 2024 06:27:31 +0000, André Draszik wrote:
> From: André Draszik <andre.draszik@linaro.org>
> 
> 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>
> 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>
> ---
>  Documentation/devicetree/bindings/Makefile | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

Added a 'Fixes' tag and applied, thanks!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile
index 2323fd5b7cda..129cf698fa8a 100644
--- a/Documentation/devicetree/bindings/Makefile
+++ b/Documentation/devicetree/bindings/Makefile
@@ -28,7 +28,10 @@  $(obj)/%.example.dts: $(src)/%.yaml check_dtschema_version FORCE
 find_all_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \
 		-name 'processed-schema*' \)
 
-find_cmd = $(find_all_cmd) | sed 's|^$(srctree)/$(src)/||' | grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | sed 's|^|$(srctree)/$(src)/|'
+find_cmd = $(find_all_cmd) | \
+		sed 's|^$(srctree)/||' | \
+		grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | \
+		sed 's|^|$(srctree)/|'
 CHK_DT_DOCS := $(shell $(find_cmd))
 
 quiet_cmd_yamllint = LINT    $(src)