cbfstool: have decompress functions provide ouput data size
commit5213c53f6f126bf79ca2849d7d04a0e5141811ea
authorAaron Durbin <adurbin@chromium.org>
Fri, 23 Oct 2015 22:38:40 +0000 (23 17:38 -0500)
committerPatrick Georgi <pgeorgi@google.com>
Sun, 25 Oct 2015 12:23:15 +0000 (25 13:23 +0100)
treeaaf45f052b52a6c8c33a80d8a1ce51093c28ab54
parentcd9ba8ac034d9a693066ac3226332053f744299e
cbfstool: have decompress functions provide ouput data size

Currently cbfs stage files that are compressed do not have
the decompressed size readily available. Therefore there's
no good way to know actual size of data after it is
decompressed. Optionally return the decompressed data size
if requested.

Change-Id: If371753d28d0ff512118d8bc06fdd48f4a0aeae7
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/12173
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
util/cbfstool/cbfs_image.c
util/cbfstool/common.h
util/cbfstool/compress.c
util/cbfstool/lzma/lzma.c