* [PATCH v1] meta:kernel-uboot: Support lzma compressed algorithm
@ 2024-11-20 6:17 Jamin Lin
0 siblings, 0 replies; only message in thread
From: Jamin Lin @ 2024-11-20 6:17 UTC (permalink / raw)
To: openembedded-core; +Cc: troy_lee, jamin_lin
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>
---
meta/classes-recipe/kernel-uboot.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes-recipe/kernel-uboot.bbclass b/meta/classes-recipe/kernel-uboot.bbclass
index 30a85ccc28..6d4aff6b11 100644
--- a/meta/classes-recipe/kernel-uboot.bbclass
+++ b/meta/classes-recipe/kernel-uboot.bbclass
@@ -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
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-20 6:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-20 6:17 [PATCH v1] meta:kernel-uboot: Support lzma compressed algorithm Jamin Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox