the following patch was just integrated into master: commit 4b7941332829cc3fddbfba3b939ee75e4930cf05 Author: Aaron Durbin adurbin@chromium.org Date: Tue Jan 21 15:28:38 2014 -0600
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: Iad3897dd28cf12f12ae877cfd83e1990fa7d2f0f Signed-off-by: Alexandru Gagniuc mr.nuke.me@gmail.com Signed-off-by: Aaron Durbin adurbin@chromium.org
See http://review.coreboot.org/4772 for details.
-gerrit