From 9abbefe27ebb60106ea1b8f4f2969c8dd83ab401 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 6 Sep 2023 22:25:29 +0200 Subject: boot: compress the init module --- configure | 4 ++-- src/kernel/arch/amd64/grub.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index ffe47dd..b6502d6 100755 --- a/configure +++ b/configure @@ -67,7 +67,7 @@ ports/%: portdeps +$@/port install """) -t('out/boot.iso', 'out/fs/boot/kernel out/fs/boot/grub/grub.cfg out/fs/boot/init', [ +t('out/boot.iso', 'out/fs/boot/kernel out/fs/boot/grub/grub.cfg out/fs/boot/init.gz', [ 'grub-mkrescue -o $@ out/fs/ >/dev/null 2>&1' ]) @@ -89,7 +89,7 @@ t('out/bootstrap.elf', 'src/bootstrap/linker.ld' + srcobj('src/bootstrap/') + 'o '$(CC) -nostdlib -Wl,-no-pie -T $^ -o $@' ]) -t('out/fs/boot/init', 'out/bootstrap out/initrd.tar', ['cat $^ > $@']) +t('out/fs/boot/init.gz', 'out/bootstrap out/initrd.tar', ['cat $^ | gzip > $@']) t('out/fs/boot/grub/grub.cfg', 'src/kernel/arch/amd64/grub.cfg', ['cp $< $@']) diff --git a/src/kernel/arch/amd64/grub.cfg b/src/kernel/arch/amd64/grub.cfg index 528b39c..6bdd30d 100644 --- a/src/kernel/arch/amd64/grub.cfg +++ b/src/kernel/arch/amd64/grub.cfg @@ -2,5 +2,5 @@ set timeout=0 menuentry "Camellia" { multiboot2 /boot/kernel - module2 /boot/init + module2 /boot/init.gz } -- cgit v1.2.3