summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi2024-10-30 10:19:33 +0000
committerChristian Marangi2024-10-30 13:17:33 +0000
commit618f079f5d03edfd82fe7949f16c61acef9408a2 (patch)
treebdc5d781c8a4d6591599c631ee228f05effa1ef3
parentf9afff8b280d98103de5da12de46ef9580e130d3 (diff)
downloadopenwrt-618f079f5d03edfd82fe7949f16c61acef9408a2.tar.gz
build: correctly ignore Initramfs image on error
Correctly ignore Initramfs image copy on error. This follows the pattern with sysupgrade image where an image might fail as it's too big or the generation command fails and there is nothing to copy to the bin directory. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--include/image.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index c476f6674f..a4ac1b49cf 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 $$^ $$@