[init] Add new initrd format

A new compressed initrd format for srv.init to load drivers, services,
and data from, instead of every file getting loaded by the bootloader.
This will allow for less memory allocated by the bootloader and passed
to init if not every driver or data file is loaded.

Loading, passing, and using the new initrd will be done in a coming
commit.
This commit is contained in:
Justin C. Miller
2023-01-17 18:48:28 -07:00
parent 5a3e0ba541
commit 6ef15a2721
10 changed files with 290 additions and 3 deletions

View File

@@ -66,6 +66,10 @@ rule makefat
cp $in $out; $
mcopy -s -D o -i $out@@1M ${build_root}/fatroot/* ::/
rule mkinitrd
description = Creating initrd
command = ${source_root}/scripts/mkinitrd.py $out $in
rule strip
description = Stripping $name
command = $