aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/cmd_pxecfg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/cmd_pxecfg.c b/common/cmd_pxecfg.c
index b34ac39dc..ee1b66b86 100644
--- a/common/cmd_pxecfg.c
+++ b/common/cmd_pxecfg.c
@@ -430,7 +430,10 @@ static void label_boot(struct pxecfg_label *label)
*/
bootm_argv[3] = getenv("fdtaddr");
- do_bootm(NULL, 0, 4, bootm_argv);
+ if (bootm_argv[3])
+ do_bootm(NULL, 0, 4, bootm_argv);
+ else
+ do_bootm(NULL, 0, 3, bootm_argv);
}
enum token_type {