summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-05-05 10:47:18 -0500
committerCommit Bot <commit-bot@chromium.org>2021-05-07 16:17:24 +0000
commit5990b8d032cdf51e0d67b63c7d9ef0df2e14145d (patch)
tree415586cf748c5d2131431c0a60b50b58a7952dd1
parent769bb4fbb2a959b40c8a6ec408f1011464287b69 (diff)
downloadchrome-ec-5990b8d032cdf51e0d67b63c7d9ef0df2e14145d.tar.gz
add CONFIG_CMD_DUMP_NVMEM
Add CONFIG_CMD_DUMP_NVMEM to control building the dump_nvmem command. BUG=b:186663661 TEST=flash usage doesn't change with make -j BOARD=cr50 Change-Id: Ie42e6c4b36ebca75ce99c2f5477fa7d917fcc87f Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2875471 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Reviewed-by: Namyoon Woo <namyoon@chromium.org>
-rw-r--r--common/new_nvmem.c2
-rw-r--r--include/config.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/common/new_nvmem.c b/common/new_nvmem.c
index d3bfcb40b4..1be4d4b4b2 100644
--- a/common/new_nvmem.c
+++ b/common/new_nvmem.c
@@ -3218,6 +3218,7 @@ test_export_static enum ec_error_list browse_flash_contents(int print)
return rv;
}
+#ifdef CONFIG_CMD_DUMP_NVMEM
static int command_dump_nvmem(int argc, char **argv)
{
int print = 1;
@@ -3235,3 +3236,4 @@ static int command_dump_nvmem(int argc, char **argv)
return 0;
}
DECLARE_SAFE_CONSOLE_COMMAND(dump_nvmem, command_dump_nvmem, "", "");
+#endif /* CONFIG_CMD_DUMP_NVMEM */
diff --git a/include/config.h b/include/config.h
index e5f4d34b05..d860ec4264 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1106,6 +1106,7 @@
#define CONFIG_CMD_CRASH
#define CONFIG_CMD_DEVICE_EVENT
#undef CONFIG_CMD_DLOG
+#define CONFIG_CMD_DUMP_NVMEM
#define CONFIG_CMD_ECRST
#undef CONFIG_CMD_ECTEMP
#define CONFIG_CMD_FASTCHARGE