support lz4 compressed ramdisk

master
ma34s 2014-04-17 09:55:27 +09:00
parent 82937c8f66
commit 50c0c51f04
2 changed files with 8 additions and 1 deletions

BIN
lz4 Executable file

Binary file not shown.

9
mkboot
View File

@ -247,7 +247,14 @@ ramdisk_offset=$ramdisk_offset\ntags_offset=$tags_offset\ncmd_line=\"$cmd_line\"
fi
mkdir ramdisk
cd ramdisk
gzip -d -c ../ramdisk.gz | cpio -i -d -m --no-absolute-filenames 2>/dev/null
gzip -t ../ramdisk.gz
if [ $? -gt 0 ]; then
$tooldir/lz4 -d ../ramdisk.gz ../ramdisk.cpio
cpio -i -d -m --no-absolute-filenames 2>/dev/null < ../ramdisk.cpio
else
gzip -d -c ../ramdisk.gz | cpio -i -d -m --no-absolute-filenames 2>/dev/null
fi
#Unpack Finish to exit.
pout "Unpack completed."
exit