History

kbuild: add dtc as dependency on .dtb files

If dtc is rebuilt, we should rebuild .dtb files with the new dtc.

Rob Herring committed 8 years ago

Commit b8fc5b21 parent e71de5e1 file · +1 −1Browse files

Unified · Split

scripts/Makefile.lib+1−1
@@ -316,7 +316,7 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \ · 315 unmodified lines
316 -d $(depfile).dtc.tmp $(dtc-tmp) ; \316 -d $(depfile).dtc.tmp $(dtc-tmp) ; \
317 cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)317 cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
318 318
319$(obj)/%.dtb: $(src)/%.dts FORCE319$(obj)/%.dtb: $(src)/%.dts $(DTC) FORCE
320 $(call if_changed_dep,dtc)320 $(call if_changed_dep,dtc)
321 321
322dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)322dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)