aboutsummaryrefslogtreecommitdiff
path: root/common/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cli.c')
-rw-r--r--common/cli.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/cli.c b/common/cli.c
index 7ffe902..38bba17 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -71,6 +71,13 @@ int run_command_repeatable(const char *cmd, int flag)
return 0;
#endif
}
+#else
+__weak int board_run_command(const char *cmdline)
+{
+ printf("## Commands are disabled. Please enable CONFIG_CMDLINE.\n");
+
+ return 1;
+}
#endif /* CONFIG_CMDLINE */
int run_command_list(const char *cmd, int len, int flag)