aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 49392ecbef17..d0c17a55a2f5 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -273,6 +273,18 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
273 273
274dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) 274dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
275 275
276# Helper targets for Installing DTBs into the boot directory
277quiet_cmd_dtb_install = INSTALL $<
278 cmd_dtb_install = cp $< $(2)
279
280_dtbinst_pre_:
281 $(Q)if [ -d $(INSTALL_DTBS_PATH).old ]; then rm -rf $(INSTALL_DTBS_PATH).old; fi
282 $(Q)if [ -d $(INSTALL_DTBS_PATH) ]; then mv $(INSTALL_DTBS_PATH) $(INSTALL_DTBS_PATH).old; fi
283 $(Q)mkdir -p $(INSTALL_DTBS_PATH)
284
285%.dtb_dtbinst_: $(obj)/%.dtb _dtbinst_pre_
286 $(call cmd,dtb_install,$(INSTALL_DTBS_PATH))
287
276# Bzip2 288# Bzip2
277# --------------------------------------------------------------------------- 289# ---------------------------------------------------------------------------
278 290