aboutsummaryrefslogtreecommitdiff
path: root/lib/gunzip.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-01-14 13:02:05 -0500
committerTom Rini <trini@konsulko.com>2016-01-19 08:31:17 -0500
commit1811b7d38cf6e6caacc083044bc8f0f8015b5627 (patch)
treec481c5b564f3f0a5e75960b2be258279427370f3 /lib/gunzip.c
parentb5db3c2c7ebdfd1474bd50442295e935e6910a08 (diff)
downloadu-boot-1811b7d38cf6e6caacc083044bc8f0f8015b5627.zip
u-boot-1811b7d38cf6e6caacc083044bc8f0f8015b5627.tar.gz
u-boot-1811b7d38cf6e6caacc083044bc8f0f8015b5627.tar.bz2
gunzip.c: Only include gzwrite on CONFIG_CMD_UNZIP
Only when we have CONFIG_CMD_UNZIP enabled do we have the 'gzwrite' command. While this command should be separated from CONFIG_CMD_UNZIP we should also only include the write portion of the gz code in that case as well. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib/gunzip.c')
-rw-r--r--lib/gunzip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gunzip.c b/lib/gunzip.c
index d86aa87..80b157f 100644
--- a/lib/gunzip.c
+++ b/lib/gunzip.c
@@ -70,6 +70,7 @@ int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp)
return zunzip(dst, dstlen, src, lenp, 1, i);
}
+#ifdef CONFIG_CMD_UNZIP
__weak
void gzwrite_progress_init(u64 expectedsize)
{
@@ -258,6 +259,7 @@ out:
return r;
}
+#endif
/*
* Uncompress blocks compressed with zlib without headers