]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
kernel-uboot: Support lzma compressed algorithm
authorJamin Lin <jamin_lin@aspeedtech.com>
Wed, 20 Nov 2024 06:17:24 +0000 (14:17 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Nov 2024 12:02:43 +0000 (12:02 +0000)
commit211178065bdca293c84c41a9a1e79c10df95b6ad
treed7945603dd64695fd6a21d0203a6c0b0f49ca0be
parentb961021cc47c53ddd602e6038f5faf02416455b3
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"

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>
meta/classes-recipe/kernel-uboot.bbclass