[U-Boot] [PATCH 2/7] pxe: support include files at top-level
Rob Herring
robherring2 at gmail.com
Wed Mar 28 17:51:33 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>
---
common/cmd_pxe.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c
index 8a68fa1..25054ba 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 + strlen(b) + 1, cfg,
+ nest_level + 1);
+ break;
+
case T_PROMPT:
err = parse_integer(&p, &cfg->prompt);
break;
--
1.7.5.4
More information about the U-Boot
mailing list