AK2: allow forcing repack ramdisk compression format of choice
- ramdisk_compression=auto; (or undefined) in anykernel.sh is the default, automatically repacking with the detected unpack format - changing auto to gz lzo lzma xz bz2 lz4-l (for lz4 legacy) or lz4 force the repack as that format
This commit is contained in:
1 parent
e6b8326197
commit
0535fd7ca0
1 file changed
+4
-1
+4
-1
@@ -164,7 +164,10 @@ write_boot() {
|
||||
dtb=`ls *-dtb`;
|
||||
dtb="--dt $split_img/$dtb";
|
||||
fi;
|
||||
compext=`echo $split_img/boot.img-ramdisk.cpio.* | rev | cut -d. -f1 | rev`;
|
||||
case $ramdisk_compression in
|
||||
auto|"") compext=`echo $split_img/boot.img-ramdisk.cpio.* | rev | cut -d. -f1 | rev`;;
|
||||
*) compext=$ramdisk_compression;;
|
||||
esac;
|
||||
case $compext in
|
||||
gz) repackcmd="gzip";;
|
||||
lzo) repackcmd="lzo";;
|
||||
|
||||
Reference in new issue
Block a user