diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-05-05 10:45:57 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-07 16:17:22 +0000 |
commit | 769bb4fbb2a959b40c8a6ec408f1011464287b69 (patch) | |
tree | 3da39a64cd9ff7dd575cac467dc15d77d45ba09d | |
parent | 1908d6706c3cbdf06a3604d17785d72588825533 (diff) | |
download | chrome-ec-769bb4fbb2a959b40c8a6ec408f1011464287b69.tar.gz |
add CONFIG_CMD_WP
Add CONFIG_CMD_WP to control building the wp commands.
This adds the wp console command, the bpforce console command, and the
wp vendor command.
BUG=b:186663661
TEST=flash usage doesn't change with make -j BOARD=cr50
Change-Id: I707ace6d35b691a49d983b714ad519ae85c7e01f
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2875470
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
-rw-r--r-- | board/cr50/wp.c | 2 | ||||
-rw-r--r-- | include/config.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/board/cr50/wp.c b/board/cr50/wp.c index d8d8f760b9..7b8f02b24d 100644 --- a/board/cr50/wp.c +++ b/board/cr50/wp.c @@ -120,6 +120,7 @@ static void force_write_protect(int force, int wp_en) set_wp_state(wp_en); } +#ifdef CONFIG_CMD_WP static enum vendor_cmd_rc vc_set_wp(enum vendor_cmd_cc code, void *buf, size_t input_size, @@ -246,6 +247,7 @@ static int command_wp(int argc, char **argv) DECLARE_SAFE_CONSOLE_COMMAND(wp, command_wp, "[<BOOLEAN>/follow_batt_pres [atboot]]", "Get/set the flash HW write-protect signal"); +#endif /* CONFIG_CMD_WP */ void set_bp_follow_ccd_config(void) { diff --git a/include/config.h b/include/config.h index 86f8346bbf..e5f4d34b05 100644 --- a/include/config.h +++ b/include/config.h @@ -1183,6 +1183,7 @@ #undef CONFIG_CMD_USB_PD_CABLE #undef CONFIG_CMD_USB_PD_PE #define CONFIG_CMD_WAITMS +#define CONFIG_CMD_WP #undef CONFIG_CMD_AP_RESET_LOG /*****************************************************************************/ |