coreboot/util
Daisuke Nojiri 8984a637c1 cbfstool: allow compression at file header level
Currently, compression is only allowed at subheader level (e.g. cbfs_stage,
cbfs_payload_segment). This change adds compression field to each file's
header so that any cbfs file can be compressed.

With the necessary additions in coreboot and libpayload, the following sample
code can load a compressed file:

	const char *name = "foo.bmp";
	struct cbfs_file *file = cbfs_get_file(media, name);
	void *dst = malloc(ntohl(file->uncompressed_size));
	dst = cbfs_get_file_content(media, name, type, file, dst);

cbfs_stage and cbfs_payload_segment continue to support compression at
subheader level because stages and payloads have to be decompressed to the load
address, which is stored in the subheader. For these, file level compression
should be turned off.

Change-Id: I9a00ec99dfc68ffb2771bb4a3cc5ba6ba8a326f4
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/10935
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2015-09-01 14:51:19 +00:00
..
abuild abuild: avoid hanging in oldconfig for parallel builds 2015-08-08 12:01:02 +02:00
acpi Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
amdtools Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
arm_boot_tools/mksunxiboot arm_boot_tools: Add 'b' to fopen flags for Windows compatibility 2014-12-19 18:55:34 +01:00
autoport autoport: Include 'default_irq_route.asl' into DSDT 2015-06-24 02:02:48 +02:00
bimgtool bimgtool: initialize data header 2015-06-12 23:16:01 +02:00
board_status board-status: move board status back to $TMPDIR 2015-08-13 08:30:36 +02:00
broadcom secimage: Use libz's crc32 function 2015-08-09 12:34:24 +02:00
cbfstool cbfstool: allow compression at file header level 2015-09-01 14:51:19 +00:00
cbmem util/cbmem: add -T option for machine parseable timestamps 2015-08-31 13:58:02 +00:00
crossgcc buildgcc: Show the exit status of wget if downloading fails. 2015-08-31 06:45:13 +00:00
dtd_parser Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
ectool util/ectool: don't dump the whole ram when writing to it 2015-07-06 23:11:03 +02:00
exynos exynos: Install the BL1 and set the checksum in the Makefile. 2014-09-09 20:01:18 +02:00
fletcher util/fletcher: fix debug option parsing 2014-10-18 14:45:42 +02:00
genbuild_h genbuild_h: Actually use git's current commit for timestamp if possible 2015-08-10 18:17:20 +02:00
genprof util/genprof: improve handling of command line arguments 2014-08-12 09:02:44 +02:00
gitconfig gitconfig/rebase.sh: adapt default branch name 2015-08-28 18:41:21 +00:00
ifdfake Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
ifdtool ifdtool: handle region masks correctly 2015-08-19 14:03:35 +00:00
inteltool inteltool: Add Intel 4-Series chipset detection 2015-08-30 18:05:18 +00:00
intelvbttool VBT parser. 2015-05-25 18:19:51 +02:00
ipqheader Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
k8resdump Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
kconfig util/kconfig: add olddefconfig target 2015-08-25 15:40:12 +00:00
lint lint/gitconfig: Enable checkpatch.pl checking of commits 2015-07-17 18:42:50 +02:00
msrtool Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
nvidia nvidia/cbootimage: update to 1.5 2015-04-25 12:16:58 +02:00
nvramtool Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
optionlist Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
release release: add release script 2015-07-16 17:40:42 +02:00
rockchip add make_idb.py & update bootblock 2015-03-24 15:24:52 +01:00
romcc Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
sconfig Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
scripts util/scripts: add some support scripts 2015-06-30 08:24:38 +02:00
showdevicetree Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
spkmodem_recv Add spkmodem receiver 2013-06-12 05:18:24 +02:00
superiotool Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
uio_usbdebug Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
vgabios Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
viatool Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
xcompile arm64: xcompile: Add support for A53 erratum 843419 2015-08-28 06:46:09 +00:00