Message ID | 1395676271-9040-7-git-send-email-sjg@chromium.org |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show |
diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c index e4d4e02..71ccab3 100644 --- a/board/sandbox/sandbox/sandbox.c +++ b/board/sandbox/sandbox/sandbox.c @@ -78,6 +78,16 @@ int board_late_init(void) panic("Cannot init cros-ec device"); return -1; } + + return 0; +} +#endif + +#ifndef CONFIG_CMDLINE +int board_run_command(const char *cmd) +{ + printf("Run command: %s\n", cmd); + return 0; } #endif
Add a simple board_run_command() function for sandbox. It does nothing except print the command that would be executed. This can be extended to perform actual tasks. Signed-off-by: Simon Glass <sjg@chromium.org> --- board/sandbox/sandbox/sandbox.c | 10 ++++++++++ 1 file changed, 10 insertions(+)