summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-05-25 10:43:16 +0000
committerWolfgang Denk <wd@denx.de>2012-06-21 22:34:26 +0200
commit1e08522699fcfe906692024a839fd4a5fc7749f5 (patch)
tree17e44a7e45f0ffff161f064e5e6474adf226f0d8 /common
parent8594753ba0a7151e9352f1994b829f6c2d44a023 (diff)
downloadu-boot-imx-1e08522699fcfe906692024a839fd4a5fc7749f5.zip
u-boot-imx-1e08522699fcfe906692024a839fd4a5fc7749f5.tar.gz
u-boot-imx-1e08522699fcfe906692024a839fd4a5fc7749f5.tar.bz2
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>
Diffstat (limited to 'common')
-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 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;