[U-Boot] [PATCH 6/6] sandbox: Add board_run_command() function
Simon Glass
sjg at chromium.org
Mon Mar 24 16:51:11 CET 2014
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 at 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
More information about the U-Boot
mailing list