aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/cmd_pxe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c
index 9f1c14d..346eb61 100644
--- a/common/cmd_pxe.c
+++ b/common/cmd_pxe.c
@@ -711,10 +711,11 @@ static int label_boot(struct pxe_label *label)
if (bootm_argv[3])
bootm_argc = 4;
+ do_bootm(NULL, 0, bootm_argc, bootm_argv);
+
#ifdef CONFIG_CMD_BOOTZ
+ /* Try booting a zImage if do_bootm returns */
do_bootz(NULL, 0, bootm_argc, bootm_argv);
-#else
- do_bootm(NULL, 0, bootm_argc, bootm_argv);
#endif
return 1;
}