[oe-commits] Andrea Adami : kernel.bbclass: copy gz, lzo, lzma initramfs cpio images. - since 2.6.30 there is choice between gzip and lzma for the initramfs. cpio - in patchwork there are pending patches for lzo compressor, so we add lzo too - patch is only concerning initramfs images

git version control git at git.openembedded.org
Thu Dec 31 09:03:43 UTC 2009


Module: openembedded.git
Branch: martin_jansa/srcpv
Commit: 572abc3fdd1076ca35d8c15d269cc9d862101805
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=572abc3fdd1076ca35d8c15d269cc9d862101805

Author: Andrea Adami <andrea.adami at gmail.com>
Date:   Wed Dec 30 23:29:53 2009 +0100

kernel.bbclass: copy gz, lzo, lzma initramfs cpio images. - since 2.6.30 there is choice between gzip and lzma for the initramfs.cpio - in patchwork there are pending patches for lzo compressor, so we add lzo too - patch is only concerning initramfs images

---

 classes/kernel.bbclass |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 069dceb..83530b5 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -208,8 +208,12 @@ kernel_do_install() {
 kernel_do_configure() {
 	yes '' | oe_runmake oldconfig
 	if [ ! -z "${INITRAMFS_IMAGE}" ]; then
-		cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz" initramfs.cpio.gz
-	fi 
+		for img in cpio.gz cpio.lzo cpio.lzma; do
+		if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then
+			cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" initramfs.$img
+		fi
+		done
+	fi
 }
 
 do_menuconfig() {





More information about the Openembedded-commits mailing list