[openwrt/openwrt] build: correctly ignore Initramfs image on error

LEDE Commits lede-commits at lists.infradead.org
Wed Oct 30 06:17:57 PDT 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/618f079f5d03edfd82fe7949f16c61acef9408a2

commit 618f079f5d03edfd82fe7949f16c61acef9408a2
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Wed Oct 30 11:19:33 2024 +0100

    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 at gmail.com>
---
 include/image.mk | 3 +++
 1 file changed, 3 insertions(+)

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 $$^ $$@
 




More information about the lede-commits mailing list