From a80617328ca0d83f3ab2031f5847abb31904b3f4 Mon Sep 17 00:00:00 2001 From: Nathan Lee Date: Sun, 11 Oct 2026 15:05:20 -0400 Subject: automated initramfs generation and deletion via makefile and lifecycle scripts --- website-initramfs/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'website-initramfs/Makefile') diff --git a/website-initramfs/Makefile b/website-initramfs/Makefile index 57d303b..b570f08 100644 --- a/website-initramfs/Makefile +++ b/website-initramfs/Makefile @@ -29,11 +29,16 @@ progs: $(OBJS) @echo " AS $<" $(CC) $(CFLAGS) -fuse-ld=lld $< -o $@ -.PHONY: progs mkinitrd all clean +.PHONY: progs mvprogs mkinitrd all clean +mvprogs: + @echo " MVPROGS" + ./mvprogs.sh progtab mkinitrd: @echo " MKINITRD" - find . -print0 | cpio --null -ov -H newc > initramfs.cpio + cat ziptab | cpio -ov -H newc > initramfs.cpio clean: @echo " CLEAN $(OBJS) initramfs.cpio" $(RM) -f $(OBJS) initramfs.cpio -all: progs mkinitrd + @echo " CLEAN ziptab" + xargs $(RM) -rf