cli: Make the sandbox board_run_command the default
If CONFIG_CMDLINE=n, common/cli.c calls board_run_command. This fails to link on most architectures. However, the sandbox architecture has an implementation which we can use. Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
committed by
Simon Glass
parent
3780e2d08e
commit
19464f4feb
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user