diff --git a/include/image.mk b/include/image.mk index c476f6674f5..a4ac1b49cf8 100644 --- a/include/image.mk +++ b/include/image.mk @@ -542,6 +542,9 @@ define Device/Build/initramfs $(call Kernel/CompileImage/Initramfs,$(KDIR)/target-dir-$$(ROOTFS_ID/$(1)),.$$(ROOTFS_ID/$(1))) endif $(1)-initramfs-images: $$(if $$(KERNEL_INITRAMFS),$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE)) + + .IGNORE: $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) + $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) cp $$^ $$@