| commit | e8f05182f8bc7322603631c5495b644eb9dc2e6c | [log] [tgz] |
|---|---|---|
| author | Nikolai Artemiev <[email protected]> | Fri Feb 11 06:54:23 2022 |
| committer | Commit Bot <[email protected]> | Tue Mar 15 05:29:37 2022 |
| tree | 1df2cbc9bf952d0112132d84e8697101f9d74600 | |
| parent | f4aa1bdda817da7d682d6bb849878d53c25aa079 [diff] |
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 <[email protected]> Change-Id: I82a2df994235bbd4af302d32f02dcd3b5ed90e54 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/3459327 Reviewed-by: Edward O'Callaghan <[email protected]> Commit-Queue: Edward O'Callaghan <[email protected]>