1
0
Fork 0

pxe: support include files at top-level

Include files outside of a menu were not getting included and parsed.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
utp
Rob Herring 2012-05-25 10:43:16 +00:00 committed by Wolfgang Denk
parent 8594753ba0
commit 1e08522699
1 changed files with 5 additions and 0 deletions

View File

@ -1110,6 +1110,11 @@ static int parse_pxefile_top(char *p, struct pxe_menu *cfg, int nest_level)
break;
case T_INCLUDE:
err = handle_include(&p, b + ALIGN(strlen(b), 4), cfg,
nest_level + 1);
break;
case T_PROMPT:
err = parse_integer(&p, &cfg->prompt);
break;