summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r--common/cmd_bootm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index bcc5739..ece7f7c 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -1547,6 +1547,8 @@ int do_booti(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
goto fail;
}
+#ifdef CONFIG_ANDROID_BOOT_PARTITION_MMC
+#ifdef CONFIG_ANDROID_RECOVERY_PARTITION_MMC
if (!strcmp(ptn, "boot"))
partno = CONFIG_ANDROID_BOOT_PARTITION_MMC;
if (!strcmp(ptn, "recovery"))
@@ -1556,6 +1558,8 @@ int do_booti(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
printf("booti: device don't have such partition:%s\n", ptn);
goto fail;
}
+#endif
+#endif
#ifdef CONFIG_FASTBOOT
fastboot_ptentry the_partition = {