summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen.kooi@linaro.org>2014-01-14 12:00:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-14 17:03:53 +0000
commit2fa4364a7d851305d87a49db8a326f035d05942d (patch)
treed0895839dda5037bc854edc7a58210f0e81d094a /meta/classes
parent21551f693a0d75dfdaefda3365fea006608d2716 (diff)
downloadpoky-2fa4364a7d851305d87a49db8a326f035d05942d.tar.gz
kernel.bbclass: add support for LZ4 initramfs files
(From OE-Core rev: 4cf53999459f3984f541ad5e666057a6727a066c) Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass7
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() {
87 mkdir -p ${B}/usr 87 mkdir -p ${B}/usr
88 # Find and use the first initramfs image archive type we find 88 # Find and use the first initramfs image archive type we find
89 rm -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio 89 rm -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio
90 for img in cpio.gz cpio.lzo cpio.lzma cpio.xz; do 90 for img in cpio.gz cpio.lz4 cpio.lzo cpio.lzma cpio.xz; do
91 if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then 91 if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then
92 cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img ${B}/usr/. 92 cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img ${B}/usr/.
93 case $img in 93 case $img in
@@ -96,6 +96,11 @@ copy_initramfs() {
96 gunzip -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img 96 gunzip -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img
97 break 97 break
98 ;; 98 ;;
99 *lz4)
100 echo "lz4 decompressing image"
101 lz4 -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img
102 break
103 ;;
99 *lzo) 104 *lzo)
100 echo "lzo decompressing image" 105 echo "lzo decompressing image"
101 lzop -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img 106 lzop -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img