From: Rob Herring <rob.herr...@calxeda.com>

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

Signed-off-by: Rob Herring <rob.herr...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to