set_gbb_flags: Check write protection status before starting to flash.
People trying to override GBB flags and not having write protection disabled may
corrupt whole RW section of firmware.
To avoid that, we should check write protection before starting to invoke
TEST=./set_gbb_flags.sh 0x39 # Aborted on a write-protected system, as expected.
Signed-off-by: Hung-Te Lin <email@example.com>
Reviewed-by: Randall Spangler <firstname.lastname@example.org>
Commit-Queue: Hung-Te Lin <email@example.com>
1 file changed