bzip2: Support compression for sandbox
authorSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2016 16:31:00 +0000 (09:31 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:23 +0000 (19:06 -0700)
commitcf2045283284a3226889b66541c456eb7ca869e9
treed0806f4ebf851ff70d71a773456e2c5f1ff9bf94
parent20af3c0a0034b885cd269cb7abdc2d933d82a723
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>
include/bzlib.h
lib/bzip2/Makefile
lib/bzip2/bzlib_blocksort.c [new file with mode: 0644]
lib/bzip2/bzlib_compress.c [new file with mode: 0644]