From 7a32b98dacfa2da6dace2ae1d9eff08932eec61a Mon Sep 17 00:00:00 2001 From: Lei Wen Date: Fri, 28 Sep 2012 04:26:44 +0000 Subject: 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 --- lib/zlib/zlib.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/zlib/zlib.c') diff --git a/lib/zlib/zlib.c b/lib/zlib/zlib.c index 230d0df682..7e1570292c 100644 --- a/lib/zlib/zlib.c +++ b/lib/zlib/zlib.c @@ -12,6 +12,14 @@ * - added inflateIncomp */ +#include + +#ifdef CONFIG_GZIP_COMPRESSED +#define NO_DUMMY_DECL +#include "deflate.c" +#include "trees.c" +#endif + #include "zutil.h" #include "inftrees.h" #include "inflate.h" -- cgit