Add a "remove" command to cbfstool
authorGabe Black <gabeblack@google.com>
Fri, 27 Jan 2012 08:33:47 +0000 (00:33 -0800)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 2 Apr 2012 16:39:08 +0000 (18:39 +0200)
commite1bb49e2ece1eda6a3d566b48b7a8e50a3469f63
treec26d5c701a82d620aa87dfae071571faee200a3d
parentdd30acdd590f6a39a5d3c4a38e3d949e73b5e2fa
Add a "remove" command to cbfstool

This command removes the first file it finds with the given name by changing
its type to CBFS_COMPONENT_NULL and setting the first character of its name to
a null terminator. If the "files" immediately before or after the target file
are already marked as empty, they're all merged together into one large file.

Change-Id: Idc6b2a4c355c3f039c2ccae81866e3ed6035539b
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Ronald G. Minnich <rminnich@google.com>
Reviewed-on: http://review.coreboot.org/814
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
util/cbfstool/cbfstool.c
util/cbfstool/common.c