From: Koen Kooi Date: Tue, 14 Jan 2014 11:00:48 +0000 (+0100) Subject: kernel.bbclass: add support for LZ4 initramfs files X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~34876 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4cf53999459f3984f541ad5e666057a6727a066c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git kernel.bbclass: add support for LZ4 initramfs files Signed-off-by: Koen Kooi Signed-off-by: Richard Purdie --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 5fef446fb68..f2a5ec5de76 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -87,7 +87,7 @@ copy_initramfs() { mkdir -p ${B}/usr # Find and use the first initramfs image archive type we find rm -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio - for img in cpio.gz cpio.lzo cpio.lzma cpio.xz; do + for img in cpio.gz cpio.lz4 cpio.lzo cpio.lzma cpio.xz; do if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img ${B}/usr/. case $img in @@ -96,6 +96,11 @@ copy_initramfs() { gunzip -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img break ;; + *lz4) + echo "lz4 decompressing image" + lz4 -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img + break + ;; *lzo) echo "lzo decompressing image" lzop -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img