[oe-commits] Andrea Adami : linux-kexecboot: force LZMA compression for kernels > 2.6.30

git version control git at git.openembedded.org
Tue Feb 2 22:54:03 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3477e95b6865443fe25b7e7d1bf09e0ac6f38ec1
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3477e95b6865443fe25b7e7d1bf09e0ac6f38ec1

Author: Andrea Adami <andrea.adami at gmail.com>
Date:   Tue Feb  2 23:53:15 2010 +0100

linux-kexecboot: force LZMA compression for kernels > 2.6.30

---

 recipes/kexecboot/linux-kexecboot.inc |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/recipes/kexecboot/linux-kexecboot.inc b/recipes/kexecboot/linux-kexecboot.inc
index 1cf556a..6cc22f4 100644
--- a/recipes/kexecboot/linux-kexecboot.inc
+++ b/recipes/kexecboot/linux-kexecboot.inc
@@ -1,5 +1,5 @@
 # We set PR here, since a change in the kexecboot recipe will need to get picked up by *all* the kernels:
-PR = "r17"
+PR = "r18"
 
 LOGO_SIZE = '${@base_conditional("GUI_MACHINE_CLASS", "bigscreen", "vga", "qvga", d)}'
 SRC_URI = "file://${LOGO_SIZE}/logo_linux_clut224.ppm.bz2"
@@ -39,7 +39,16 @@ def kernel_version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d)
     else:
         return falsevalue
 
-# default lzma compressor for kernels >= 2.6.30
+# force lzma compression for kernels >= 2.6.30
+#
+# kernel
+# CONFIG_HAVE_KERNEL_GZIP=y
+# CONFIG_HAVE_KERNEL_LZMA=y
+# CONFIG_HAVE_KERNEL_LZO=y
+
+KERNEL_COMPRESSION = '${@kernel_version_less_or_equal("PV", "2.6.30", "", "CONFIG_KERNEL_LZMA=y", d)}'
+#
+# initramfs
 INITRAMFS_COMPRESSION = '${@kernel_version_less_or_equal("PV", "2.6.30", "", "CONFIG_INITRAMFS_COMPRESSION_LZMA=y", d)}'
 INITRAMFS_COMPRESSION_SUFFIX = '${@kernel_version_less_or_equal("PV", "2.6.30", "gz", "lzma", d)}'
 RD_COMPRESSION = '${@kernel_version_less_or_equal("PV", "2.6.30", "", "CONFIG_RD_LZMA=y", d)}'
@@ -50,6 +59,7 @@ do_configure[depends] += "${INITRAMFS_IMAGE}:do_rootfs"
 do_configure_append() {
 sed -i -e /CONFIG_BLK_DEV_INITRD/d \
        -e /CONFIG_KEXEC/d \
+       -e /CONFIG_KERNEL/d \
        -e /CONFIG_INITRAMFS_SOURCE/d \
        -e /CONFIG_INITRAMFS_COMPRESSION/d \
        -e /CONFIG_RD/d \
@@ -66,6 +76,7 @@ sed -i -e /CONFIG_CMDLINE/s/debug/loglevel=3/1 ${S}/.config
 
 echo 'CONFIG_BLK_DEV_INITRD=y
 CONFIG_KEXEC=y
+${KERNEL_COMPRESSION}
 ${INITRAMFS_COMPRESSION}
 CONFIG_INITRAMFS_SOURCE="initramfs.cpio.${INITRAMFS_COMPRESSION_SUFFIX}"
 ${RD_COMPRESSION}





More information about the Openembedded-commits mailing list