Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+1 -1
Documentation/devicetree/bindings/Makefile
··· 5 5 DT_MK_SCHEMA_FLAGS := $(if $(DT_SCHEMA_FILES), -u) 6 6 7 7 quiet_cmd_chk_binding = CHKDT $(patsubst $(srctree)/%,%,$<) 8 - cmd_chk_binding = $(DT_DOC_CHECKER) $< ; \ 8 + cmd_chk_binding = $(DT_DOC_CHECKER) -u $(srctree)/$(src) $< ; \ 9 9 $(DT_EXTRACT_EX) $< > $@ 10 10 11 11 $(obj)/%.example.dts: $(src)/%.yaml FORCE
+1 -1
scripts/Makefile.lib
··· 298 298 DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml 299 299 300 300 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) $@ ; 302 302 303 303 define rule_dtc_dt_yaml 304 304 $(call cmd_and_fixdep,dtc,yaml)