summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2016-12-01 00:36:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-08 10:31:29 +0000
commit68b2a6320a294867df802256ff8de95afe053902 (patch)
treede8d130f1a4063d4ff23c6a1e8b21c0e9d411d5a
parent8fe1f25ea087cea13c5380de758078f0fb9eae34 (diff)
downloadpoky-68b2a6320a294867df802256ff8de95afe053902.tar.gz
kernel.bbclass: allow uncompressed initramfs archives
The code failed to copy the initramfs in case it was a plain cpio archive. (From OE-Core rev: 7dbdb4ea91aa027866da2bd46c65fe65a25c848f) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 17e85a4530..71d543b38e 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -165,7 +165,7 @@ copy_initramfs() {
165 mkdir -p ${B}/usr 165 mkdir -p ${B}/usr
166 # Find and use the first initramfs image archive type we find 166 # Find and use the first initramfs image archive type we find
167 rm -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio 167 rm -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio
168 for img in cpio.gz cpio.lz4 cpio.lzo cpio.lzma cpio.xz; do 168 for img in cpio cpio.gz cpio.lz4 cpio.lzo cpio.lzma cpio.xz; do
169 if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then 169 if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then
170 cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img ${B}/usr/. 170 cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img ${B}/usr/.
171 case $img in 171 case $img in