[U-Boot] [PATCH v2] pxe: support include files at top-level
Rob Herring
robherring2 at gmail.com
Fri May 25 22:43:16 CEST 2012
From: Rob Herring <rob.herring at calxeda.com>
Include files outside of a menu were not getting included and parsed.
Signed-off-by: Rob Herring <rob.herring at calxeda.com>
---
v2:
- ensure include file load address is aligned
common/cmd_pxe.c | 5 +++++
1 file changed, 5 insertions(+)
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;
--
1.7.9.5
More information about the U-Boot
mailing list