aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-05-25 10:43:16 +0000
committerJohn Rigby <john.rigby@linaro.org>2012-07-20 20:33:13 -0600
commitf13fec546abcb7485d8825f9a133aa82981d0f51 (patch)
tree00d24f0a828403146289dd847ee0497197a5566b
parent2040a4fe0315ae1bacc272942177769796d961fb (diff)
downloadu-boot-linaro-stable-f13fec546abcb7485d8825f9a133aa82981d0f51.tar.gz
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>
-rw-r--r--common/cmd_pxe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c
index 534e7bc63..e6f6d6b2e 100644
--- a/common/cmd_pxe.c
+++ b/common/cmd_pxe.c
@@ -1113,6 +1113,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;