[PATCH 01/12 v2] arm: export arch_number to env
Sascha Hauer
s.hauer at pengutronix.de
Tue Sep 20 15:13:13 EDT 2011
Applied this series to next.
Sascha
On Mon, Sep 19, 2011 at 02:15:38PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> so we can dynamise the boot depending on the machine
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
> arch/arm/lib/armlinux.c | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c
> index 5bdbb92..25b0f2a 100644
> --- a/arch/arm/lib/armlinux.c
> +++ b/arch/arm/lib/armlinux.c
> @@ -186,7 +186,14 @@ void armlinux_set_bootparams(void *params)
>
> void armlinux_set_architecture(int architecture)
> {
> + char *arch_number = asprintf("%d", architecture);
> +
> armlinux_architecture = architecture;
> +
> + setenv("arch_number", arch_number);
> + export("arch_number");
> +
> + kfree(arch_number);
> }
>
> void armlinux_set_revision(unsigned int rev)
> --
> 1.7.5.4
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list