diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-05-25 10:43:16 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-06-21 22:34:26 +0200 |
commit | 1e08522699fcfe906692024a839fd4a5fc7749f5 (patch) | |
tree | 17e44a7e45f0ffff161f064e5e6474adf226f0d8 | |
parent | 8594753ba0a7151e9352f1994b829f6c2d44a023 (diff) | |
download | u-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>
-rw-r--r-- | 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 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; |