aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2019-05-09 08:53:44 -0500
committerRob Herring <robh@kernel.org>2019-05-22 09:01:01 -0500
commit05aeca7cb0a2f53a307c329ba758f1e88972a360 (patch)
tree903d11bb73401ac1415d653f936e91aa458afd74 /scripts/Makefile.lib
parentf08ff9c525b1d87668409d018cc236b1e4e41bb5 (diff)
downloadlinux-yocto-05aeca7cb0a2f53a307c329ba758f1e88972a360.tar.gz
linux-yocto-05aeca7cb0a2f53a307c329ba758f1e88972a360.tar.bz2
linux-yocto-05aeca7cb0a2f53a307c329ba758f1e88972a360.zip
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>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib2
1 files changed, 1 insertions, 1 deletions
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
DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml
quiet_cmd_dtb_check = CHECK $@
- cmd_dtb_check = $(DT_CHECKER) -p $(DT_TMP_SCHEMA) $@ ;
+ cmd_dtb_check = $(DT_CHECKER) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ ;
define rule_dtc_dt_yaml
$(call cmd_and_fixdep,dtc,yaml)