diff options
author | Koen Kooi <koen.kooi@linaro.org> | 2014-01-14 12:00:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-14 11:50:47 +0000 |
commit | 4cf53999459f3984f541ad5e666057a6727a066c (patch) | |
tree | 7497bc39cf80e0e18267b08c8283a65c4c5d6c1b /meta/classes/kernel.bbclass | |
parent | 4c6fb26d3fb54c75e99f6531a53054b8c6482a8b (diff) | |
download | openembedded-core-4cf53999459f3984f541ad5e666057a6727a066c.tar.gz openembedded-core-4cf53999459f3984f541ad5e666057a6727a066c.tar.bz2 openembedded-core-4cf53999459f3984f541ad5e666057a6727a066c.zip |
kernel.bbclass: add support for LZ4 initramfs files
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 5fef446fb6..f2a5ec5de7 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 |