summaryrefslogtreecommitdiff
path: root/arch/sandbox/cpu
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-04-20 08:42:48 +0000
committerTom Rini <trini@ti.com>2013-05-01 11:17:21 -0400
commit39042d821ed882d448f1bcd6505df7fb6700b8f0 (patch)
treeca6b4f2352d2ef274a7b2917a06ddf8b2b53e39d /arch/sandbox/cpu
parent095686d3f5e0b46e76d40e3ad0b75982a215024d (diff)
downloadu-boot-imx-39042d821ed882d448f1bcd6505df7fb6700b8f0.zip
u-boot-imx-39042d821ed882d448f1bcd6505df7fb6700b8f0.tar.gz
u-boot-imx-39042d821ed882d448f1bcd6505df7fb6700b8f0.tar.bz2
sandbox: Allow -c argument to provide a command list
This allows passing of entire scripts to sandbox with the -c argument, which is useful for testing. Commands can be delimited with a newline or semicolon. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu')
-rw-r--r--arch/sandbox/cpu/start.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
index 2fcec8b..ae6e16c 100644
--- a/arch/sandbox/cpu/start.c
+++ b/arch/sandbox/cpu/start.c
@@ -90,7 +90,7 @@ int sandbox_main_loop_init(void)
/* Execute command if required */
if (state->cmd) {
- run_command(state->cmd, 0);
+ run_command_list(state->cmd, -1, 0);
os_exit(state->exit_type);
}