diff options
author | Sean Anderson <seanga2@gmail.com> | 2020-01-10 12:32:19 -0500 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-02-05 19:33:46 -0700 |
commit | 19464f4feb70292ea857c332f06673ac840a007d (patch) | |
tree | 89406e97f25b3def84b9b20bead19021dce953b5 /common/cli.c | |
parent | 3780e2d08e49565160272def7067322aca376c8e (diff) | |
download | u-boot-19464f4feb70292ea857c332f06673ac840a007d.tar.gz |
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>
Diffstat (limited to 'common/cli.c')
-rw-r--r-- | common/cli.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/cli.c b/common/cli.c index 7ffe902b88..38bba17585 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) |