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 <quic_eberman@quicinc.com>
This commit is contained in:
Elliot Berman
2023-10-24 12:53:11 -07:00
parent cfe3892709
commit bb72440aa0

View File

@@ -25,7 +25,7 @@ quiet_cmd_extract_ex = DTEX $@
$(obj)/%.example.dts: $(src)/%.yaml check_dtschema_version FORCE $(obj)/%.example.dts: $(src)/%.yaml check_dtschema_version FORCE
$(call if_changed,extract_ex) $(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*' \) -name 'processed-schema*' \)
find_cmd = $(find_all_cmd) | grep -F "$(DT_SCHEMA_FILES)" find_cmd = $(find_all_cmd) | grep -F "$(DT_SCHEMA_FILES)"