diff options
| author | Rob Herring <robh@kernel.org> | 2019-05-09 09:53:44 -0400 |
|---|---|---|
| committer | Rob Herring <robh@kernel.org> | 2019-05-22 10:01:01 -0400 |
| commit | 05aeca7cb0a2f53a307c329ba758f1e88972a360 (patch) | |
| tree | 903d11bb73401ac1415d653f936e91aa458afd74 | |
| parent | f08ff9c525b1d87668409d018cc236b1e4e41bb5 (diff) | |
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>
| -rw-r--r-- | Documentation/devicetree/bindings/Makefile | 2 | ||||
| -rw-r--r-- | scripts/Makefile.lib | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile index 63b139f9ae28..8a2774b5834b 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile | |||
| @@ -5,7 +5,7 @@ DT_MK_SCHEMA ?= dt-mk-schema | |||
| 5 | DT_MK_SCHEMA_FLAGS := $(if $(DT_SCHEMA_FILES), -u) | 5 | DT_MK_SCHEMA_FLAGS := $(if $(DT_SCHEMA_FILES), -u) |
| 6 | 6 | ||
| 7 | quiet_cmd_chk_binding = CHKDT $(patsubst $(srctree)/%,%,$<) | 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 | $(DT_EXTRACT_EX) $< > $@ | 9 | $(DT_EXTRACT_EX) $< > $@ |
| 10 | 10 | ||
| 11 | $(obj)/%.example.dts: $(src)/%.yaml FORCE | 11 | $(obj)/%.example.dts: $(src)/%.yaml FORCE |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 1b412d4394ae..f1f38c8cdc74 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -298,7 +298,7 @@ DT_BINDING_DIR := Documentation/devicetree/bindings | |||
| 298 | DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml | 298 | DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml |
| 299 | 299 | ||
| 300 | quiet_cmd_dtb_check = CHECK $@ | 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 | define rule_dtc_dt_yaml | 303 | define rule_dtc_dt_yaml |
| 304 | $(call cmd_and_fixdep,dtc,yaml) | 304 | $(call cmd_and_fixdep,dtc,yaml) |
