From: Andreas Oberritter Date: Wed, 30 Nov 2016 23:36:47 +0000 (+0100) Subject: kernel.bbclass: allow uncompressed initramfs archives X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~23410 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dbdb4ea91aa027866da2bd46c65fe65a25c848f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git kernel.bbclass: allow uncompressed initramfs archives The code failed to copy the initramfs in case it was a plain cpio archive. Signed-off-by: Andreas Oberritter Signed-off-by: Ross Burton --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 17e85a45301..71d543b38e5 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -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