From 1e08522699fcfe906692024a839fd4a5fc7749f5 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Fri, 25 May 2012 10:43:16 +0000 Subject: pxe: support include files at top-level Include files outside of a menu were not getting included and parsed. Signed-off-by: Rob Herring --- common/cmd_pxe.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common') diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index b3c1f67..5949b24 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -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; -- cgit v1.1