[U-Boot] [PATCH 1/2] Add support for XZ decompression algorithm.

Peter Tyser ptyser at xes-inc.com
Mon Dec 6 18:58:37 CET 2010


Hi Luigi,

On Sun, 2010-12-05 at 16:16 +0100, Luigi 'Comio' Mantellini wrote:
> XZ (aka LZMA2) is the new version of lzma compression format.
> The following patch add a cut-down version of XZ Embedded library (v20100702)
> that supports only single-call API.
> 
> In order to enable XZ support, the CONFIG_XZ must be defined by board
> configuration file.
> 
> For any details, please refer to XZ Embedded homesite
> (http://tukaani.org/xz/embedded.html)

If I understand the xz format correctly, its nearly identical to lzma,
and the 'xz' utility can decompress .lzma files too.  Any chance the xz
code you're adding can be used to handle lzma-compressed archives?  If
so, can we deprecate CONFIG_LZMA and have the new CONFIG_XZ support
handle both .xz and .lzma archives?  Or at least share a significant
chunk of code between the two formats?

Best,
Peter



More information about the U-Boot mailing list