Skip to content

Commit

Permalink
bzip2: Support compression for sandbox
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
  • Loading branch information
sjg20 committed Jan 21, 2016
1 parent 20af3c0 commit cf20452
Show file tree
Hide file tree
Showing 4 changed files with 1,852 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/bzlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/bzip2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

obj-y += bzlib.o bzlib_crctable.o bzlib_decompress.o \
bzlib_randtable.o bzlib_huffman.o
obj-$(CONFIG_SANDBOX) += bzlib_compress.o bzlib_blocksort.o
Loading

0 comments on commit cf20452

Please sign in to comment.