summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorRob Herring2018-02-28 00:49:57 +0100
committerRob Herring2018-03-01 19:02:24 +0100
commitb8fc5b2157b10dadb2dcd01a95b8be83f1fbf72b (patch)
tree30a589b5ccebd597a13f7803ae5f9a146ac99b7a /scripts/Makefile.lib
parentkbuild: remove remaining use of undefined YACC_PREFIX (diff)
downloadkernel-qcow2-linux-b8fc5b2157b10dadb2dcd01a95b8be83f1fbf72b.tar.gz
kernel-qcow2-linux-b8fc5b2157b10dadb2dcd01a95b8be83f1fbf72b.tar.xz
kernel-qcow2-linux-b8fc5b2157b10dadb2dcd01a95b8be83f1fbf72b.zip
kbuild: add dtc as dependency on .dtb files
If dtc is rebuilt, we should rebuild .dtb files with the new dtc. Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com> 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 1bc2f90cb8c0..6aeb91524c76 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -316,7 +316,7 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
-$(obj)/%.dtb: $(src)/%.dts FORCE
+$(obj)/%.dtb: $(src)/%.dts $(DTC) FORCE
$(call if_changed_dep,dtc)
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)