bundle_firmware: limit size of CBFS for RW slots
Now that boards are switched over to a CBFS in each RW
slot the hashing taking place is a lot more than the
component method. The reason is that 1. there's more
things within the CBFS 2. the RW slots weren't always
fully utilized. To gain back more boot speed limit
the size of the CBFS that is hashed in the RW slots.
This is accomplished by taking advatage of the cbfstool
'compact' command which removes empty file fragmentation
from CBFS regions. This command is invoked for nodes
which contin a cbfs-files subnode. Additionally, the
cbfstool 'print' command is ran with a parseable option
which allows limiting the CBFS region to be hashed by
changing the size of the region to the offset of the
last file if it is empty. i.e. if the last file entry
is empty there's no need to include it in the hashed
Lastly, there's no reason to include a master header
within the RW slots so remove that as well.
TEST=Built and booted chell with cbfstool and dev-util patches.
Signed-off-by: Aaron Durbin <email@example.com>
Reviewed-by: Duncan Laurie <firstname.lastname@example.org>
1 file changed