diff options
-rw-r--r-- | common/cbi.c | 3 | ||||
-rw-r--r-- | include/config.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/common/cbi.c b/common/cbi.c index cf4605288a..06e0d464c1 100644 --- a/common/cbi.c +++ b/common/cbi.c @@ -347,6 +347,7 @@ DECLARE_HOST_COMMAND(EC_CMD_SET_CROS_BOARD_INFO, hc_cbi_set, EC_VER_MASK(0)); +#ifdef CONFIG_CMD_CBI static void dump_flash(void) { uint8_t buf[16]; @@ -398,4 +399,6 @@ static int cc_cbi(int argc, char **argv) return EC_SUCCESS; } DECLARE_CONSOLE_COMMAND(cbi, cc_cbi, NULL, "Print Cros Board Info from flash"); +#endif /* CONFIG_CMD_CBI */ + #endif /* !HOST_TOOLS_BUILD */ diff --git a/include/config.h b/include/config.h index aaf134c02f..981d72ce59 100644 --- a/include/config.h +++ b/include/config.h @@ -1027,6 +1027,7 @@ #define CONFIG_CMD_BATTFAKE #undef CONFIG_CMD_BATT_MFG_ACCESS #undef CONFIG_CMD_BUTTON +#define CONFIG_CMD_CBI #undef CONFIG_CMD_CCD_DISABLE /* 'ccd disable' subcommand */ #define CONFIG_CMD_CHARGER #undef CONFIG_CMD_CHARGER_ADC_AMON_BMON |