diff options
author | Lei Wen <adrian.wenl@gmail.com> | 2012-09-28 04:26:44 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-29 14:26:08 (GMT) |
commit | 7a32b98dacfa2da6dace2ae1d9eff08932eec61a (patch) | |
tree | 2a3b21801bfed546dcfdb8b3c3417ed5348b184d /lib/zlib/zlib.c | |
parent | e9a128d8e907071d45f08c878ddacc6362554eee (diff) | |
download | u-boot-7a32b98dacfa2da6dace2ae1d9eff08932eec61a.tar.xz |
lib: zlib: include deflate into zlib build
Add a new config CONFIG_GZIP_ENABLED, if enabled, the uboot bin would
include zlib's deflate method which could be used for compressing.
Signed-off-by: Lei Wen <leiwen@marvell.com>
Diffstat (limited to 'lib/zlib/zlib.c')
-rw-r--r-- | lib/zlib/zlib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/zlib/zlib.c b/lib/zlib/zlib.c index 230d0df..7e15702 100644 --- a/lib/zlib/zlib.c +++ b/lib/zlib/zlib.c @@ -12,6 +12,14 @@ * - added inflateIncomp */ +#include <common.h> + +#ifdef CONFIG_GZIP_COMPRESSED +#define NO_DUMMY_DECL +#include "deflate.c" +#include "trees.c" +#endif + #include "zutil.h" #include "inftrees.h" #include "inflate.h" |