aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kexecboot
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2010-02-02 23:53:15 +0100
committerAndrea Adami <andrea.adami@gmail.com>2010-02-02 23:53:15 +0100
commit3477e95b6865443fe25b7e7d1bf09e0ac6f38ec1 (patch)
tree76b5c1f4e7e86be0c993f72a2b042e6504ea5aa1 /recipes/kexecboot
parentab701e0efea1c67e67c2aa5292dae674a61a809b (diff)
downloadopenembedded-3477e95b6865443fe25b7e7d1bf09e0ac6f38ec1.tar.gz
openembedded-3477e95b6865443fe25b7e7d1bf09e0ac6f38ec1.tar.bz2
openembedded-3477e95b6865443fe25b7e7d1bf09e0ac6f38ec1.zip
linux-kexecboot: force LZMA compression for kernels > 2.6.30
Diffstat (limited to 'recipes/kexecboot')
-rw-r--r--recipes/kexecboot/linux-kexecboot.inc15
1 files changed, 13 insertions, 2 deletions
diff --git a/recipes/kexecboot/linux-kexecboot.inc b/recipes/kexecboot/linux-kexecboot.inc
index 1cf556a99b..6cc22f45f2 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}