Skip to contentSkip to conversation

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

PATCH Phil Blundell 1 participant 1 message Nov 15, 2013

lore
Share & tools
lore
#0 lore raw

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.

---
 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
index e99cb2f..48a429f 100644
@@ -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)
Signature · 1 line
1.8.4.rc3