- Apr 22, 2015
-
-
Eric Nelson authored
Initial filesystem images are generally highly compressible. Add a routine gzwrite that allows gzip-compressed images to be written to block devices. Signed-off-by:
Eric Nelson <eric.nelson@boundarydevices.com> Reviewed-by:
Tom Rini <trini@ti.com>
-
- Jan 14, 2015
-
-
Simon Glass authored
This allows the caller to easily detect how much of the destination buffer has been used. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 03, 2013
-
-
Kees Cook authored
The output buffer size must not be reset by the gzip decoder or there is a risk of overflowing memory during decompression. Signed-off-by:
Kees Cook <keescook@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Jul 24, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by:
Tom Rini <trini@ti.com>
-
- Apr 30, 2012
-
-
Mike Frysinger authored
This allows us to add a proper zalloc() func (one that does a zeroing alloc), and removes duplicate prototypes. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Apr 12, 2011
-
-
Catalin Radu authored
Signed-off-by:
Catalin Radu <Catalin@VirtualMetrix.com>
-
- Oct 12, 2010
-
-
Stefan Roese authored
As usually done in U-Boot, the watchdog_reset code is called via a macro (WATCHDOG_RESET). In zlib.c this was done differently, by using a function pointer which is initialized with WATCHDOG_RESET upon watchdog usage or with NULL otherwise. This patch now uses the plain WATCHDOG_RESET macros to call the function resulting in slightly smaller U-Boot images and simpler code. U-Boot code size reduction: PowerPC board with watchdog support (lwmon5): -> 80 bytes smaller image size PowerPC board without watchdog support (sequoia): -> 112 bytes smaller image size Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Detlev Zundel <dzu@denx.de> Cc: Wolfgang Denk <wd@denx.de> Acked-by:
Detlev Zundel <dzu@denx.de>
-
- Apr 13, 2010
-
-
Peter Tyser authored
Now that the other architecture-specific lib directories have been moved out of the top-level directory there's not much reason to have the '_generic' suffix on the common lib directory. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Dec 21, 2009
-
-
Wolfgang Wegner authored
Prototype for gunzip/zunzip was only in lib_generic/gunzip.c and thus repeated in every file using it. This patch moves the prototypes to common.h and removes all prototypes distributed anywhere else. Signed-off-by:
Wolfgang Wegner <w.wegner@astro-kom.de>
-
- Apr 30, 2009
-
-
Ricardo Ribalda authored
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>
-
- Apr 04, 2009
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
Some systems have zlib.h installed in /usr/include/. This isn't the desired file for u-boot code - we want the one in include/zlib.h. This rename will avoid the conflict. Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jan 27, 2009
-
-
Matthias Fuchs authored
U-Boot's gunzip() function does not handle the return code of zlib's inflate() function correctly. gunzip() is implemented to uncompress all input data in one run. So the correct return code for the good case is Z_STREAM_END. In case of insufficient output buffer memory inflate returns Z_OK. For gunzip() this is an error. It also makes sense to me to call inflateEnd() also in case of an error. Signed-off-by:
Matthias Fuchs <matthias.fuchs@esd-electronics.com>
-
- Aug 29, 2008
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Feb 07, 2008
-
-
Marian Balakowicz authored
Move gunzip(), zalloc() and zfree() to a separate file. Share zalloc() and zfree() with cramfs uncompress routine. Signed-off-by:
Marian Balakowicz <m8@semihalf.com>
-