Patchwork [4/4] initramfs-image: add lzma compression support

login
register
mail settings
Submitter christian.braunersorensen@prevas.dk
Date Feb. 27, 2013, 8:43 a.m.
Message ID <3efa5b90df1b51fcc13042977210e10c56d9d0bd.1361954556.git.christian.braunersorensen@prevas.dk>
Download mbox | patch
Permalink /patch/223556/
State Superseded
Delegated to: Esben Haabendal
Headers show

Comments

christian.braunersorensen@prevas.dk - Feb. 27, 2013, 8:43 a.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

---
 classes/initramfs-image.oeclass | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Patch

diff --git a/classes/initramfs-image.oeclass b/classes/initramfs-image.oeclass
index 0279572..06590d1 100644
--- a/classes/initramfs-image.oeclass
+++ b/classes/initramfs-image.oeclass
@@ -7,10 +7,14 @@  inherit cpio-image image-qa archive-image
 do_install[postfuncs] += "do_install_initramfs_symlink"
 do_install_initramfs_symlink () {
 	mkdir -p ${D}${bootdir}
-	ln -s ../${IMAGE_BASENAME}.cpio ${D}${bootdir}/initramfs.cpio
+        if [ "${USE_cpio_compress_image}" == "1" ]; then
+          ln -s ../${IMAGE_BASENAME}.${USE_cpio_image_compression} ${D}${bootdir}/initramfs.cpio.${USE_cpio_image_compression}
+        else
+	  ln -s ../${IMAGE_BASENAME}.cpio ${D}${bootdir}/initramfs.cpio
+        fi
 }
 
-FILES_${PN} += "${bootdir}/initramfs.cpio"
+FILES_${PN} += "${bootdir}/initramfs.*"
 
 PROVIDES_${PN} = "initramfs"