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>
This commit is contained in:
parent
8594753ba0
commit
1e08522699
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user