
24 Mar
2014
24 Mar
'14
4:51 p.m.
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(+)
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
--
1.9.1.423.g4596e3a