mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 05:39:39 +01:00
kernel-uboot: Support lzma compressed algorithm
Linux kernel supports to compress its output binary with lzma algorithm and U-Boot support to decompress lzma compressed image. Both xz and lzma algorithms are identical and users can use xz utility with format parameter to compress Image which supports lzma algorithm. Add the following command to support lzma. This command is refer to Linux kernel, https://github.com/torvalds/linux/blob/master/arch/powerpc/boot/wrapper "xz --format=lzma -f -6 linux.bin" (From OE-Core rev: 211178065bdca293c84c41a9a1e79c10df95b6ad) Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
539d7700a0
commit
86bfd2c7a2
@@ -41,6 +41,8 @@ uboot_prep_kimage() {
|
||||
gzip -9 linux.bin
|
||||
elif [ "${linux_comp}" = "lzo" ] ; then
|
||||
lzop -9 linux.bin
|
||||
elif [ "${linux_comp}" = "lzma" ] ; then
|
||||
xz --format=lzma -f -6 linux.bin
|
||||
fi
|
||||
mv -f "linux.bin${linux_suffix}" linux.bin
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user