From: Simon Glass Date: Sat, 20 Apr 2013 08:42:48 +0000 (+0000) Subject: sandbox: Allow -c argument to provide a command list X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=39042d821ed882d448f1bcd6505df7fb6700b8f0;p=u-boot.git 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 --- diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 2fcec8b363..ae6e16caba 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); }