CHROMIUM: cli_classic: refactor to make downstreaming WP easier
Refactor cli_classic so that all code specific to the deprecated
WP implementation is contained in a new dep_wp_cli() function.
This commit also integrates some of the changes from the upstream patch
that adds the new writeprotect CLI:
https://review.coreboot.org/c/flashrom/+/58738.
Notably, the dep_wp_cli() function signature also matches the wp_cli()
signature in the upstream patch to make incremental migration easier.
See go/flashrom-wp for additional details about the migration.
BUG=b:182223106
TEST=flashrom --wp-{enable,disable,range,status,list} on kasumi DUT
BRANCH=none
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Change-Id: I82a2df994235bbd4af302d32f02dcd3b5ed90e54
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/3459327
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
1 file changed