Skip to content

Commit 05aeca7

Browse files
committed
dt-bindings: Pass binding directory to validation tools
In order to have $ref's to schema files within the kernel, we need to pass the base path of bindings to the schema validation tools. Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Michal Marek <michal.lkml@markovi.net> Cc: devicetree@vger.kernel.org Cc: linux-kbuild@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent f08ff9c commit 05aeca7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Documentation/devicetree/bindings/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DT_MK_SCHEMA ?= dt-mk-schema
55
DT_MK_SCHEMA_FLAGS := $(if $(DT_SCHEMA_FILES), -u)
66

77
quiet_cmd_chk_binding = CHKDT $(patsubst $(srctree)/%,%,$<)
8-
cmd_chk_binding = $(DT_DOC_CHECKER) $< ; \
8+
cmd_chk_binding = $(DT_DOC_CHECKER) -u $(srctree)/$(src) $< ; \
99
$(DT_EXTRACT_EX) $< > $@
1010

1111
$(obj)/%.example.dts: $(src)/%.yaml FORCE

‎scripts/Makefile.lib‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ DT_BINDING_DIR := Documentation/devicetree/bindings
298298
DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml
299299

300300
quiet_cmd_dtb_check = CHECK $@
301-
cmd_dtb_check = $(DT_CHECKER) -p $(DT_TMP_SCHEMA) $@ ;
301+
cmd_dtb_check = $(DT_CHECKER) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ ;
302302

303303
define rule_dtc_dt_yaml
304304
$(call cmd_and_fixdep,dtc,yaml)

0 commit comments

Comments
 (0)