From bb72440aa0cbb16fad46dafbe497d31f54976d53 Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Tue, 24 Oct 2023 12:53:11 -0700 Subject: [PATCH] dt-bindings: Have find traverse through symlink When the dt-bindings Makefile searches for schema files, it uses "find" to search for yaml files. Find does not travese past symlinks, but bindings is a symlink to the devicetree project. Force traversal by adding trailing slash so that the root directory is past the symlink. Change-Id: I9575b3b9e00725c5e1bcaccf99070d71994a9f77 Signed-off-by: Elliot Berman --- bindings/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/Makefile b/bindings/Makefile index f9609ea2..786bb5b3 100644 --- a/bindings/Makefile +++ b/bindings/Makefile @@ -25,7 +25,7 @@ quiet_cmd_extract_ex = DTEX $@ $(obj)/%.example.dts: $(src)/%.yaml check_dtschema_version FORCE $(call if_changed,extract_ex) -find_all_cmd = find -L $(srctree)/$(src) \( -name '*.yaml' ! \ +find_all_cmd = find $(srctree)/$(src)/ \( -name '*.yaml' ! \ -name 'processed-schema*' \) find_cmd = $(find_all_cmd) | grep -F "$(DT_SCHEMA_FILES)"