]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
lib_generic: gunzip: New function zunzip
authorRicardo Ribalda Delgado <ricardo.ribalda@uam.es>
Mon, 27 Apr 2009 16:33:32 +0000 (18:33 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 30 Apr 2009 21:07:02 +0000 (23:07 +0200)
commit35f6a943f7d92145d607c1d55f5c2e2eae5be630
tree84de84b4681760b3b9f3fb40b366c90c8af99f25
parentccb71dfac94d4a9ef161a59a51b4f31d7d9e4747
lib_generic: gunzip: New function zunzip

Separate gunzip in

gunzip: Find the end of the header and call zunzip.
zunzip: Inflate gunzip block without header.

UBI fs blocks can be compresed in lzo, zlib or no-compression. The
current implementation of u-boot supported all the compressions but
there was a bug in the implementation of the zlib blocks.

UBIFS's Zlib blocks do not have header but they were compressed using
gunzip, a function used to decompress gunzip files/sectors with a
header.

This patch adds a new function zunzip that uncompress a zlib block with
no header.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es>
lib_generic/gunzip.c