From: Rob Herring Date: Tue, 27 Feb 2018 23:49:57 +0000 (-0600) Subject: kbuild: add dtc as dependency on .dtb files X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8fdf659377f21e0cb1f0ef72acc55a73736cf38;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git kbuild: add dtc as dependency on .dtb files If dtc is rebuilt, we should rebuild .dtb files with the new dtc. Change-Id: I313ee55506628c0922161541adf293735cb4edae Acked-by: Masahiro Yamada Signed-off-by: Rob Herring --- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 4661de07300e..16c0af229c84 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -306,10 +306,10 @@ 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) -$(obj)/%.dtbo: $(src)/%.dts FORCE +$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE $(call if_changed_dep,dtc) dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)