coreboot-kgpe-d16/util
Stefan Reinauer 3fec29cc96 This separates the code for each command in cbfstool. For the good and for the
bad: It brings a certain amount of code duplication (some of which can be
cleaned up again, or get rid of by proper refactoring).
On the other hand now there's a very simple code flow for each command, rather
than for each operation. ie.

adding a file to a cbfs means:
 - open the cbfs
 - add the file
 - close the cbfs

rather than

open the cbfs:
 - do this for add, remove, but not for create

create a new lar
 - if we don't have an open one yet

add a file:
 - if we didn't bail out before

close the file:
 - if we didn't bail out before


The short term benefit is that this fixes a problem where cbfstool was trying
to add a file if you gave a non-existing command because it bailed out on
known, not on unknown commands.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4654 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2009-09-22 15:58:19 +00:00
..
ADLO Changes Makefile generation so that recursive "make" calls read 2008-06-08 23:05:24 +00:00
abuild .. make abuild Kconfig proof for the time being. 2009-09-22 15:53:54 +00:00
analysis This patch unifies the use of config options in v2 to all start with CONFIG_ 2009-06-30 15:17:49 +00:00
buildrom Eliminate various issues brought up by scan-build. 2009-04-21 20:14:31 +00:00
cbfstool This separates the code for each command in cbfstool. For the good and for the 2009-09-22 15:58:19 +00:00
dump_mmcr small ts5300 update, fix endian problem in dummmcr. 2006-03-18 00:10:29 +00:00
ectool Add 'install' target for ectool (trivial). 2009-04-23 22:22:47 +00:00
getpir fix compilation issues for pirq checker tool (trivial) 2009-09-10 11:21:48 +00:00
inteltool Clean up Mac OS X support of inteltool 2009-09-01 09:52:14 +00:00
k8resdump K8 resource dump utility from Rudolf Marek 2007-10-30 01:12:20 +00:00
kbuildall kbuildall is a utility that generates default configs for all 2009-09-16 20:18:03 +00:00
kconfig In the mainboard selection, the selected mainboard is printed twice in 2009-09-14 14:15:43 +00:00
lbtdump Fix a typo in lbtdump output (trivial). 2008-05-07 19:21:18 +00:00
mkelfImage Impact: fix vmlinux from 2.6.30 2009-06-28 15:04:06 +00:00
mptable fix typo 2008-03-15 16:30:39 +00:00
msrtool port msrtool to darwin. 2009-09-01 10:03:01 +00:00
newconfig back out some overzealous renames 2009-09-22 15:53:02 +00:00
nrv2b don't ignore return values (trivial) 2009-04-22 12:14:39 +00:00
nvramtool nvramtool: 2009-09-01 09:54:21 +00:00
optionlist More compact format for wiki output at 2009-06-02 23:49:00 +00:00
options strdup the input of dirname, as dirname is free 2009-07-18 14:20:39 +00:00
resetcf epia-m support 2004-10-06 17:33:54 +00:00
romcc 20090819-2-trim-down-cbfs: 2009-08-20 14:48:03 +00:00
sconfig Kconfig! 2009-08-12 15:00:51 +00:00
superiotool * Add OSX/Darwin support 2009-09-01 09:57:55 +00:00
vgabios This patch unifies the use of config options in v2 to all start with CONFIG_ 2009-06-30 15:17:49 +00:00
x86emu Add Kconfig support for PCI option ROMS. 2009-08-28 14:36:12 +00:00
xcompile Kconfig! 2009-08-12 15:00:51 +00:00