]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: allow uncompressed initramfs archives
authorAndreas Oberritter <obi@opendreambox.org>
Wed, 30 Nov 2016 23:36:47 +0000 (00:36 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Dec 2016 10:26:12 +0000 (10:26 +0000)
The code failed to copy the initramfs in case it was a plain
cpio archive.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel.bbclass

index 17e85a45301acfa0137b98e6096b62566ba811fb..71d543b38e521610fcf14626aa42c23ef465cab8 100644 (file)
@@ -165,7 +165,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.lz4 cpio.lzo cpio.lzma cpio.xz; do
+       for img in cpio 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