summaryrefslogtreecommitdiff
path: root/include/bzlib.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-05 16:31:00 (GMT)
committerSimon Glass <sjg@chromium.org>2016-01-21 02:06:23 (GMT)
commitcf2045283284a3226889b66541c456eb7ca869e9 (patch)
treed0806f4ebf851ff70d71a773456e2c5f1ff9bf94 /include/bzlib.h
parent20af3c0a0034b885cd269cb7abdc2d933d82a723 (diff)
downloadu-boot-fsl-qoriq-cf2045283284a3226889b66541c456eb7ca869e9.tar.xz
bzip2: Support compression for sandbox
Add the missing code to allow bzip2 compression to be used. This is useful for sandbox tests. These files are taken from the bzip2 1.0.6 release. The license text is copied to the top of each file as is done with other bzip2 files in U-Boot. The only other change is to squash a compiler warning with nBytes. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/bzlib.h')
-rw-r--r--include/bzlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bzlib.h b/include/bzlib.h
index 2d864d5..19314f8 100644
--- a/include/bzlib.h
+++ b/include/bzlib.h
@@ -68,7 +68,10 @@
/* Configure for U-Boot environment */
#define BZ_NO_STDIO
+
+#ifndef CONFIG_SANDBOX
#define BZ_NO_COMPRESS
+#endif
/* End of configuration for U-Boot environment */
#ifdef __cplusplus