coreboot/util/cbfstool
Aaron Durbin 5300f53755 UPSTREAM: cbfstool: correct size left calculation for "empty" entries
After removing a file sandwiched between two other files, that file
could no longer be re-added at the same location. cbfstool tried to
add the file, and a new "empty" entry, which, together, would no
longer fit, so it continued checking for the next available space.

Change the behavior to add the file if there is enough space for the
file alone, then only add the "empty" entry if there is enough space
for it.

Change-Id: I885bb574bb230905bd42ca0fb6d4a6ef9b0cae03
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/186983
2014-02-19 18:36:36 +00:00
..
lzma cbfstool: remove dead code 2013-11-14 02:38:23 +00:00
cbfs-mkpayload.c Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
cbfs-mkstage.c Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
cbfs.h Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
cbfs_image.c UPSTREAM: cbfstool: correct size left calculation for "empty" entries 2014-02-19 18:36:36 +00:00
cbfs_image.h cbfstool: add code to serialize the header using the new xdr functions 2014-01-25 05:54:30 +00:00
cbfstool.c Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
coff.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
common.c Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
common.h Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
compress.c cbfstool: remove dead code 2013-11-14 02:38:23 +00:00
elf.h
elfheaders.c Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
EXAMPLE cbfstool: Update example file. 2013-02-04 11:12:15 +01:00
fit.c Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
fit.h cbfstool: Add update-fit command 2013-03-27 01:25:12 +01:00
fv.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
Makefile Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
Makefile.inc Add section header parsing and use it in the mk-payload step 2014-01-24 23:51:48 +00:00
swab.h Various fixes to cbfstool. 2011-10-24 20:29:29 +02:00
xdr.c cbfs: fix issues with word size and endianness. 2013-12-11 09:04:54 +00:00