mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
libflashrom: Add flags to skip unreadable and unwritable regions
Add flags to allow libflashrom users to configure how operations that include unreadable or unwritable regions should be behave. If the flags are set to true, a read/write operation will just skip the inaccessible region and will still be executed in other regions. If the flags are set to false, the inaccessible region will cause the entire operation to fail. BUG=b:260440773 BRANCH=none TEST=builds Change-Id: I9b96fb04b863625d2c9f9a00b97c35b3ddb0871b CoAuthored-by: Edward O'Callaghan <quasisec@google.com> Signed-off-by: Edward O'Callaghan <quasisec@google.com> Signed-off-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/70128 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:

committed by
Edward O'Callaghan

parent
6cb1bd6fe3
commit
a018234400
@ -251,6 +251,8 @@ enum flashrom_flag {
|
||||
FLASHROM_FLAG_FORCE_BOARDMISMATCH,
|
||||
FLASHROM_FLAG_VERIFY_AFTER_WRITE,
|
||||
FLASHROM_FLAG_VERIFY_WHOLE_CHIP,
|
||||
FLASHROM_FLAG_SKIP_UNREADABLE_REGIONS,
|
||||
FLASHROM_FLAG_SKIP_UNWRITABLE_REGIONS,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user