[openwrt/openwrt] imagebuilder: remove initramfs image files
LEDE Commits
lede-commits at lists.infradead.org
Tue Jul 16 10:05:31 PDT 2024
ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c85348d9abf4b89d37a7fa134cf6424bdf16787f
commit c85348d9abf4b89d37a7fa134cf6424bdf16787f
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Tue Jul 16 19:00:29 2024 +0200
imagebuilder: remove initramfs image files
Initramfs images are not supported by imagebuilder. With recent changes
to support Per Device Rootfs, we now generate an image and a vmlinux for
each Rootfs and these additional files are all shipped in the
imagebuilder tar.
Drop these new file and any vmlinux-initramfs as they are not used and
increase the final size of the imagebuilder archive.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
target/imagebuilder/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile
index 7fd2aa0920..7127df5ebc 100644
--- a/target/imagebuilder/Makefile
+++ b/target/imagebuilder/Makefile
@@ -112,6 +112,9 @@ endif
-cp $(LINUX_DIR)/.config $(IB_LDIR)/
rm -f $(IB_KDIR)/root.*
rm -f $(IB_KDIR)/vmlinux.debug
+ # remove any file for initramfs and Per Device Rootfs initramfs files
+ rm -f $(IB_KDIR)/vmlinux-initramfs*
+ rm -f $(IB_KDIR)/Image-initramfs*
if [ -x $(LINUX_DIR)/scripts/dtc/dtc ]; then \
$(INSTALL_DIR) $(IB_LDIR)/scripts/dtc; \
$(INSTALL_BIN) $(LINUX_DIR)/scripts/dtc/dtc $(IB_LDIR)/scripts/dtc/dtc; \
More information about the lede-commits
mailing list