Patchwork PATCH] kernel.bbclass: Use lzma not lzmash for decompressing

login
register
mail settings
Submitter Phil Blundell
Date Nov. 15, 2013, 1:31 p.m.
Message ID <1384522261.23724.16.camel@phil-desktop.brightsign>
Download mbox | patch
Permalink /patch/61785/
State Accepted
Commit 66fd6c4e92a8ace9b7a328bc413483bce746649c
Headers show

Comments

Phil Blundell - Nov. 15, 2013, 1:31 p.m.
If kernel_do_compile() encounters a .lzma image for the initramfs, it
attempts to decompress it using the little-known "lzmash" utility.  This
may not be present, which will cause the build to fail.

Fortunately, it appears that the more mainstream "lzma" tool is
compatible so we can use that one instead.

Signed-off-by: Phil Blundell <philb@gnu.org>
---
 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index e99cb2f..48a429f 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -103,7 +103,7 @@  copy_initramfs() {
 				;;
 			*lzma)
 				echo "lzma decompressing image"
-				lzmash -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img
+				lzma -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img
 				break
 				;;
 			*xz)