public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 01/22] sandbox: Allow -c argument to provide a command list
Date: Fri, 11 Jan 2013 12:06:43 +0100	[thread overview]
Message-ID: <201301111206.43525.marex@denx.de> (raw)
In-Reply-To: <1357829905-6579-2-git-send-email-sjg@chromium.org>

Dear Simon Glass,

> 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>

Reviewed-by: Marek Vasut <marex@denx.de>

> ---
>  arch/sandbox/cpu/start.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
> index 8589da2..ce47e7e 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);
>  	}

Best regards,
Marek Vasut

  reply	other threads:[~2013-01-11 11:06 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 14:58 [U-Boot] [RFC PATCH 0/22] RFC: image: Reduce code duplication and refactor Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 01/22] sandbox: Allow -c argument to provide a command list Simon Glass
2013-01-11 11:06   ` Marek Vasut [this message]
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 02/22] sandbox: Support 'source' command Simon Glass
2013-01-11 11:07   ` Marek Vasut
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 03/22] fs: Add support for saving data to filesystems Simon Glass
2013-01-11 11:08   ` Marek Vasut
2013-01-11 14:26     ` Simon Glass
2013-01-11 15:20       ` Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 04/22] sandbox: fs: Add support for saving files to host filesystem Simon Glass
2013-01-11 11:09   ` Marek Vasut
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 05/22] image: Split libfdt code into image-fdt.c Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 06/22] image: Add device tree setup to image library Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 07/22] arm: Refactor bootm to reduce #ifdefs Simon Glass
2013-01-11 11:10   ` Marek Vasut
2013-01-11 15:42     ` Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 08/22] arm: Use image_setup_linux() instead of local code Simon Glass
2013-01-11 11:11   ` Marek Vasut
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 09/22] powerpc: " Simon Glass
2013-01-11 11:11   ` Marek Vasut
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 10/22] m68k: " Simon Glass
2013-01-11 11:11   ` Marek Vasut
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 11/22] sparc: " Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 12/22] bootstage: Introduce sub-IDs for use with image loading Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 13/22] mkimage: Add map_sysmem() and IH_ARCH_DEFAULT to simplfy building Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 14/22] image: Introduce fit_image_load() to load images from FITs Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 15/22] image: Use fit_image_load() to load ramdisk Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 16/22] image: Use fit_image_load() to load FDT Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 17/22] sandbox: Adjust bootm command to work with sandbox Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 18/22] image: Use fit_image_load() to load kernel Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 19/22] sandbox: image: Adjust FIT image printing to work with sandbox Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 20/22] bootstage: Remove unused entries related to kernel/ramdisk/fdt load Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 21/22] sandbox: image: Create a test for loading FIT images Simon Glass
2013-01-10 14:58 ` [U-Boot] [RFC PATCH 22/22] WIP: sandbox: config: Remove boot command Simon Glass
2013-03-09 21:43 ` [U-Boot] [RFC PATCH 0/22] RFC: image: Reduce code duplication and refactor Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201301111206.43525.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox