Re: [PATCH v3] Decompressors: Add boot-time XZ support

From: Pavel Vasilyev
Date: Fri Dec 10 2010 - 16:58:28 EST


On 10.12.2010 21:50, Lasse Collin wrote:
> From: Lasse Collin <lasse.collin@xxxxxxxxxxx>
[--- ÐÑÐ ---]
>
> +config KERNEL_XZ
> + bool "XZ"
> + depends on HAVE_KERNEL_XZ
> + help
> + XZ uses the LZMA2 algorithm and instruction set specific
> + BCJ filters which can improve compression ratio of executable
> + code. The size of the kernel is about 30% smaller with XZ in
> + comparison to gzip. On architectures for which there is a BCJ
> + filter (i386, x86_64, ARM, IA-64, PowerPC, and SPARC), XZ
> + will create a few percent smaller kernel than plain LZMA.
> +
> + The speed is about the same as with LZMA: The decompression
> + speed of XZ is better than that of bzip2 but worse than gzip
> + and LZO. Compression is slow.
> +
> config KERNEL_LZO
> bool "LZO"
> depends on HAVE_KERNEL_LZO

Not worked without this:

--- ÐÑÑÑ ---

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index e330da2..d27a9c7 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -52,6 +52,7 @@ config X86
select HAVE_KERNEL_BZIP2
select HAVE_KERNEL_LZMA
select HAVE_KERNEL_LZO
+ select HAVE_KERNEL_XZ
select HAVE_HW_BREAKPOINT
select HAVE_MIXED_BREAKPOINTS_REGS
select PERF_EVENTS

--- ÐÑÑÑ ---

.... and for other archs needed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/