kernel compression with lzma
Tobias Gasser
lfs at ebp-gasser.ch
Fri Jun 19 17:01:37 MDT 2009
kernel 2.26.30 allows compression with gz, bz2 and lzma
gzip and bzip2 are fine with the installed tools.
lzma is missing in the book.
first i downloaded the "original" lzma sdk mentionned on www.7-zip.org
but had no success.
next i tried http://tukaani.org/lzma
i took the current source lzma-4.32.7.tar.gz and used my standard
configure --prefix=/usr --enable-shared
make
make install
to be complete, i tried the xz-4.99.8beta.tar.gz from tukaani too.
http://tukaani.org/xz
same procedure as with lzma
and that's it.
just get the right lzma tool...
my current kernel-sizes:
gzip 1913696
bzip2 1820944
lzma 1605712
lzma from both packages result in the same size.
even as the xz is stil beta, i propose to include the xz and not lzma in
the book to be able to compress the kernel with any method the user
wishes. (alphabetically after Vim as no dependecies exist)
maybe the tool can be marked as "optional, only required to compress the
kernel with lzma".
support for lzma in tar is with --lzma, for xz with -J (which used to be
lzma for a while...)
tobias
More information about the lfs-dev
mailing list