coreboot/util/cbfstool
Gabe Black dbd006b082 cbfstool: Propogate compression errors back to the caller.
When compression fails for whatever reason, the caller should know about it
rather than blindly assuming it worked correctly. That can prevent half
compressed data from ending up in the image.

This is currently happening for a segment of depthcharge which is triggering
a failure in LZMA. The size of the "compressed" data is never set and is
recorded as zero, and that segment effectively isn't loaded during boot.

Change-Id: Idbff01f5413d030bbf5382712780bbd0b9e83bc7
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/187364
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
(cherry picked from commit be48f3e41e)
Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com>
Reviewed-on: http://review.coreboot.org/6960
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2014-09-25 20:26:04 +02:00
..
lzma cbfstool: Propogate compression errors back to the caller. 2014-09-25 20:26:04 +02:00
cbfs-mkpayload.c cbfstool: Propogate compression errors back to the caller. 2014-09-25 20:26:04 +02:00
cbfs-mkstage.c cbfstool: Propogate compression errors back to the caller. 2014-09-25 20:26:04 +02:00
cbfs-payload-linux.c cbfstool:linux_trampoline: config CS and DS segment descriptors 2014-09-04 23:34:32 +02:00
cbfs.h cbfstool: add aarch64 as a name 2014-09-15 19:00:12 +02:00
cbfs_image.c cbfstool: Fix architecture check when adding payload 2014-09-12 22:07:19 +02:00
cbfs_image.h
cbfstool.c cbfstool: add aarch64 as a name 2014-09-15 19:00:12 +02:00
coff.h
common.c coreboot arm64: Add support for arm64 into coreboot framework 2014-09-23 18:10:32 +02:00
common.h cbfstool: Propogate compression errors back to the caller. 2014-09-25 20:26:04 +02:00
compress.c cbfstool: Propogate compression errors back to the caller. 2014-09-25 20:26:04 +02:00
elf.h cbfstool: Add AARCH64 reloc types to elf.h 2014-09-23 22:28:20 +02:00
elfheaders.c ARM: Generalize armv7 as arm. 2014-09-08 18:59:23 +02:00
elfparsing.h
EXAMPLE
fit.c
fit.h
fv.h
linux.h cbfstool:linux_trampoline: config CS and DS segment descriptors 2014-09-04 23:34:32 +02:00
linux_trampoline.c cbfstool:linux_trampoline: config CS and DS segment descriptors 2014-09-04 23:34:32 +02:00
linux_trampoline.h cbfstool:linux_trampoline: config CS and DS segment descriptors 2014-09-04 23:34:32 +02:00
Makefile
Makefile.inc
rmodtool.c
rmodule.c rmodtool: Allow rmodules with 0 relocations 2014-09-23 22:26:57 +02:00
rmodule.h
swab.h
xdr.c