]> git.sur5r.net Git - u-boot/commitdiff
pxe: always display a menu when present
authorRob Herring <rob.herring@calxeda.com>
Mon, 3 Dec 2012 03:00:25 +0000 (21:00 -0600)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 25 Jun 2013 00:07:34 +0000 (19:07 -0500)
The prompt flag is for displaying a "boot:" prompt in pxelinux. This
doesn't make sense for u-boot as we don't support the pxelinux command
interface. So we should just ignore prompt statements and always show the
menu if a menu is present.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
common/cmd_pxe.c

index 4e2811e156ffe6f505f2a1dcbff070c22fe8fe7d..6e3fcb2402dc600a36eb635fbc2458e7f9ec6634 100644 (file)
@@ -1155,6 +1155,7 @@ static int parse_pxefile_top(char *p, struct pxe_menu *cfg, int nest_level)
                err = 0;
                switch (t.type) {
                case T_MENU:
+                       cfg->prompt = 1;
                        err = parse_menu(&p, cfg, b, nest_level);
                        break;
 
@@ -1184,7 +1185,7 @@ static int parse_pxefile_top(char *p, struct pxe_menu *cfg, int nest_level)
                        break;
 
                case T_PROMPT:
-                       err = parse_integer(&p, &cfg->prompt);
+                       eol_or_eof(&p);
                        break;
 
                case T_EOL: