aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/device-tree/Bindings/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/device-tree/Bindings/Makefile')
-rw-r--r--sys/contrib/device-tree/Bindings/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/contrib/device-tree/Bindings/Makefile b/sys/contrib/device-tree/Bindings/Makefile
index 8b395893bd85..129cf698fa8a 100644
--- a/sys/contrib/device-tree/Bindings/Makefile
+++ b/sys/contrib/device-tree/Bindings/Makefile
@@ -6,7 +6,7 @@ DT_MK_SCHEMA ?= dt-mk-schema
DT_SCHEMA_LINT = $(shell which yamllint || \
echo "warning: python package 'yamllint' not installed, skipping" >&2)
-DT_SCHEMA_MIN_VERSION = 2022.3
+DT_SCHEMA_MIN_VERSION = 2023.9
PHONY += check_dtschema_version
check_dtschema_version:
@@ -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) | grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))"
+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)