On Mon, May 12, 2008 at 07:24:43AM -0500, Menon, Nishanth wrote:
> This patch cleans up the parser error seen during simple parser compilation.
> Please note that CFG_CMD_BOOTD is not defined at the moment, but leaving it
> for addition at a later point of time.
>
> Signed-off-by: Nishanth Menon <[EMAIL PROTECTED]>
>
> Index: u-boot-v2.git/common/parser.c
> ===================================================================
> --- u-boot-v2.git.orig/common/parser.c 2008-05-08 17:36:18.000000000
> -0500
> +++ u-boot-v2.git/common/parser.c 2008-05-08 17:43:27.000000000 -0500
> @@ -2,7 +2,7 @@
> #include <command.h>
> #include <environment.h>
>
> -int parse_line (char *line, char *argv[])
> +static int parse_line (char *line, char *argv[])
> {
> int nargs = 0;
>
> @@ -265,7 +265,7 @@
> continue;
> }
>
> -#if (CONFIG_COMMANDS & CFG_CMD_BOOTD)
> +#if defined(CONFIG_COMMANDS) & defined(CONFIG_CMD_BOOTD)
U-Boot v1 used to have a bitmask for enabled commands (CONFIG_COMMANDS)
and each command was represented by one bit, hence the construct above.
We don't have this anymore and I think that this recursion stop does not
work as expected anymore anyway, so you can remove this completely.
Sascha
--
Pengutronix e.K. - Linux Solutions for Science and Industry
-----------------------------------------------------------
Kontakt-Informationen finden Sie im Header dieser Mail oder
auf der Webseite -> http://www.pengutronix.de/impressum/ <-
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users