From cf2045283284a3226889b66541c456eb7ca869e9 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 5 Jan 2016 09:31:00 -0700 Subject: 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 Reviewed-by: Tom Rini --- include/bzlib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/bzlib.h') 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 -- cgit v1.1