summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cr50/board.c2
-rw-r--r--board/cr50/board.h1
-rw-r--r--include/config.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c
index 1026580c5a..91492bc4b1 100644
--- a/board/cr50/board.c
+++ b/board/cr50/board.c
@@ -1773,7 +1773,7 @@ static int command_board_properties(int argc, char **argv)
DECLARE_SAFE_CONSOLE_COMMAND(brdprop, command_board_properties,
NULL, "Display board properties");
-#ifdef CR50_DEV
+#ifdef CONFIG_CMD_ROLLBACK
static int command_rollback(int argc, char **argv)
{
system_ensure_rollback();
diff --git a/board/cr50/board.h b/board/cr50/board.h
index 99a40211cf..03f609cb3a 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -123,6 +123,7 @@
#define CONFIG_CASE_CLOSED_DEBUG_V1_UNSAFE
#define CONFIG_CMD_FLASH_LOG
#define CONFIG_PHYSICAL_PRESENCE_DEBUG_UNSAFE
+#define CONFIG_CMD_ROLLBACK
#endif
#define CONFIG_USB_PID 0x5014
diff --git a/include/config.h b/include/config.h
index 9d6baf576f..7008774812 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1159,6 +1159,7 @@
#undef CONFIG_CMD_PPC_DUMP
#undef CONFIG_CMD_RAND
#define CONFIG_CMD_REGULATOR
+#undef CONFIG_CMD_ROLLBACK
#undef CONFIG_CMD_RTC
#undef CONFIG_CMD_RTC_ALARM
#define CONFIG_CMD_RW