diff --git a/include/image-commands.mk b/include/image-commands.mk index 89c17aec5b4..1d0aed1918f 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -136,10 +136,13 @@ define Build/append-dtb endef define Build/install-dtb - $(foreach dts,$(DEVICE_DTS), \ - $(CP) \ - $(DTS_DIR)/$(dts).dtb \ - $(BIN_DIR)/$(IMG_PREFIX)-$(dts).dtb; \ + $(call locked, \ + $(foreach dts,$(DEVICE_DTS), \ + $(CP) \ + $(DTS_DIR)/$(dts).dtb \ + $(BIN_DIR)/$(IMG_PREFIX)-$(dts).dtb; \ + ), \ + install-dtb-$(IMG_PREFIX) \ ) endef