diff options
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r-- | scripts/Makefile.lib | 12 |
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 | ||
274 | dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) | 274 | dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) |
275 | 275 | ||
276 | # Helper targets for Installing DTBs into the boot directory | ||
277 | quiet_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 | ||