coreboot-kgpe-d16/util
Aaron Durbin 71c60ca482 util/cbfstool: add 'compact' command
While assembling CBFS images within the RW slots on Chrome OS
machines the current approach is to 'cbfstool copy' from the
RO CBFS to each RW CBFS. Additional fixups are required such
as removing unneeded files from the RW CBFS (e.g. verstage)
as well as removing and adding back files with the proper
arguments (FSP relocation as well as romstage XIP relocation).
This ends up leaving holes in the RW CBFS. To speed up RW
CBFS slot hashing it's beneficial to pack all non-empty files
together at the beginning of the CBFS. Therefore, provide
the 'compact' command which bubbles all the empty entries to
the end of the CBFS.

Change-Id: I8311172d71a2ccfccab384f8286cf9f21a17dec9
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/13479
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2016-01-28 19:25:57 +01:00
..
abuild abuild: allow specifying multiple targets by mainboard descriptor 2015-11-01 14:27:02 +01:00
acpi tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
amdfwtool amdfwtool: Fill the first 3 romsig entries as 0 2015-12-08 03:45:11 +01: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: Add missing casts 2016-01-11 20:51:12 +01:00
bimgtool tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
board_status board_status.sh: Double quote variables to prevent globbing and word splitting. 2015-12-20 01:18:08 +01:00
broadcom secimage: Use libz's crc32 function 2015-08-09 12:34:24 +02:00
cbfstool util/cbfstool: add 'compact' command 2016-01-28 19:25:57 +01:00
cbmem chromeos: Add timestamps to measure VPD read times 2016-01-27 16:27:18 +01:00
crossgcc crossgcc: Enable powerpc64-linux target without ppc64-linux headers 2016-01-26 15:35:07 +01:00
dtd_parser util: Look for python2 binary instead of python 2016-01-26 00:25:19 +01:00
ectool ectool: fix NetBSD compilation 2016-01-27 17:15:56 +01:00
exynos util: Look for python2 binary instead of python 2016-01-26 00:25:19 +01:00
fuzz-tests tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
genbuild_h genbuild_h.sh: allow coreboot to be a git submodule 2016-01-04 16:41:40 +01: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 tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ifdtool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
inteltool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
intelvbttool tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ipqheader util: Look for python2 binary instead of python 2016-01-26 00:25:19 +01:00
k8resdump tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
kconfig Makefile: Individualize help targets & set as non-compile targets 2015-12-06 18:35:23 +01:00
lint util/lint: Fix linter for old license headers 2016-01-21 12:31:53 +01:00
mma tree: drop last paragraph of GPL copyright header from new files 2016-01-13 20:35:40 +01:00
msrtool msrtool/configure: change svn to git 2015-12-14 22:52:49 +01:00
mtkheader util: Look for python2 binary instead of python 2016-01-26 00:25:19 +01:00
nvidia nvidia/cbootimage: update to 1.5 2015-04-25 12:16:58 +02:00
nvramtool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
optionlist util: Use /usr/bin/env as wrapper to look up python 2016-01-25 01:28:52 +01:00
release util/release: Add release notes generator script 2015-11-11 20:42:00 +01:00
rockchip util: Look for python2 binary instead of python 2016-01-26 00:25:19 +01:00
romcc romcc: Allow adding non-existent paths to include path 2015-11-19 21:20:29 +01:00
sconfig sconfig: remove warning about root_complex 2015-11-14 18:43:06 +01:00
scripts util/get_maintainer.pl: Fix top_of_kernel_tree check 2016-01-22 19:25:07 +01:00
showdevicetree tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spkmodem_recv tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
superiotool superiotool: fix out-of-box NetBSD Makefile support 2016-01-26 04:47:25 +01:00
uio_usbdebug tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vgabios vgabios: fix compilation after x86emu changes 2015-10-25 21:33:32 +01:00
viatool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
xcompile xcompile: fill in power8 64bit LE 2016-01-26 18:10:34 +01:00