flashrom.c: Integrate new erase-function selection
This requires almost a rewrite of walk_eraseblocks(): Instead of walking
all blocks for a given function, we walk the presented erase layout.
However, the overall structure stays the same.
walk_by_layout() now runs the new erase-function selection per region
to present walk_eraseblocks() the new erase layout.
Change-Id: I2535f211c49d050d21983cadb4df5005fa2e5659
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72562
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
1 file changed