coreboot-kgpe-d16/util
Joel Kitching 72d77a9a0c cbfstool/extract: ignore compression field for some payload segments
When extracting a payload from CBFS, ignore compression fields for
these types of payload segments:
  - PAYLOAD_SEGMENT_ENTRY
  - PAYLOAD_SEGMENT_BSS
  - PAYLOAD_SEGMENT_PARAMS

These types of payload segments cannot be compressed, and in certain
cases are being erroneously labeled as compressed, causing errors
when extracting the payload.

For an example of this problem, see creation of PAYLOAD_SEGMENT_ENTRY
segments in cbfs-mkpayload.c, where the only field that is written to
is |load_addr|.

Also, add a linebreak to an ERROR line.

BUG=https://ticket.coreboot.org/issues/170
TEST=cbfstool tianocore.cbfs extract -m x86 -n payload -f /tmp/payload -v -v

Change-Id: I8c5c40205d648799ea577ad0c5bee6ec2dd7d05f
Signed-off-by: kitching@google.com
Reviewed-on: https://review.coreboot.org/27520
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-07-24 20:42:37 +00:00
..
abuild Build system: Add fixes for scanbuild 2018-07-24 09:08:55 +00:00
acpi
amdfwtool
amdtools
archive
arm_boot_tools/mksunxiboot
autoport src: Get rid of unneeded whitespace 2018-06-14 09:32:34 +00:00
bimgtool
bincfg
board_status util/docker/coreboot.org-status: collect report generators 2018-06-14 08:45:24 +00:00
broadcom
cavium util/cavium: Add tool to convert devicetree blobs 2018-07-09 09:54:22 +00:00
cbfstool cbfstool/extract: ignore compression field for some payload segments 2018-07-24 20:42:37 +00:00
cbmem
checklist
chromeos
crossgcc util/crosgcc: Fix most shellcheck errors in buildgcc 2018-07-24 09:11:48 +00:00
docker util/docker: Update Makefile to improve shell access 2018-07-24 09:07:00 +00:00
dtd_parser
ectool
exynos
futility
fuzz-tests
genbuild_h
genprof
gitconfig util/gitconfig: Make checkpatch non fatal in pre-commit hook 2018-07-19 17:46:49 +00:00
ifdfake
ifdtool util/ifdtool: Remove .dependencies on make clean 2018-06-04 09:38:25 +00:00
intelmetool src: Get rid of unneeded whitespace 2018-06-14 09:32:34 +00:00
inteltool inteltool: Add PCI IDs for the C220 PCH series 2018-06-21 17:39:48 +00:00
intelvbttool
ipqheader
k8resdump
kbc1126
kconfig {src,util}: Use NULL instead of 0 for pointer 2018-06-11 08:52:08 +00:00
lint util/lint: Update lint-stable-000-license-headers linter 2018-07-06 15:31:51 +00:00
marvell
me_cleaner sb/intel/common/firmware: Enable me_cleaner for Nehalem 2018-06-25 08:19:16 +00:00
mma
msrtool util/msrtool: Add Pentium D support 2018-06-04 02:30:03 +00:00
mtkheader mediatek/mt8183: Add a stub implementation of the MT8183 SOC 2018-06-11 10:30:59 +00:00
nvidia
nvramtool util/cbfstool: Support FIT payloads 2018-06-15 09:13:24 +00:00
post
qualcomm/scripts/cmm
release
riscv
rockchip
romcc src: Get rid of unneeded whitespace 2018-06-14 09:32:34 +00:00
sconfig util/sconfig: Get rid of ops from struct device 2018-06-25 17:40:46 +00:00
scripts kconfig: add script to manipulate .config files on the command line 2018-06-12 07:43:15 +00:00
showdevicetree
spkmodem_recv
superiotool util/superiotool: Remove whitespace before tab 2018-06-04 09:10:32 +00:00
testing what-jenkins-does: Pass V=1 through to abuild 2018-07-18 12:19:46 +00:00
uio_usbdebug
vgabios src: Get rid of unneeded whitespace 2018-06-14 09:32:34 +00:00
viatool
x86
xcompile