diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2012-03-16 17:49:36 +0800 |
---|---|---|
committer | Zhang Jiejing <jiejing.zhang@freescale.com> | 2012-03-16 17:49:36 +0800 |
commit | 2e16cc73885a342cc05dfb225e0c7ff75e05df2f (patch) | |
tree | 1349387d0bdf412d8154cf93bb5bd71848a2af08 /common | |
parent | d3ea4d7258316ca68ff104087a5f1987b4829339 (diff) | |
download | u-boot-imx-2e16cc73885a342cc05dfb225e0c7ff75e05df2f.zip u-boot-imx-2e16cc73885a342cc05dfb225e0c7ff75e05df2f.tar.gz u-boot-imx-2e16cc73885a342cc05dfb225e0c7ff75e05df2f.tar.bz2 |
ENGR00177070 android: isolate booti command to fix build.
fix build error invoke by this patch:
commit e3303f5b59df570c1f76b043d85e42be3dc7a63f
Author: Lily Zhang <r58066@freescale.com>
Date: Fri Mar 9 21:16:51 2012 +0800
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_bootm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 1ee574d..0b45847 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -1460,6 +1460,7 @@ static int do_bootm_integrity (int flag, int argc, char *argv[], } #endif +#ifdef CONFIG_CMD_BOOTI /* Section for Android bootimage format support * Refer: * http://android.git.kernel.org/?p=platform/system/core.git;a=blob;f=mkbootimg/bootimg.h @@ -1517,10 +1518,11 @@ int do_booti(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (mmcc != -1) { #ifdef CONFIG_MMC + struct fastboot_ptentry *pte; struct mmc *mmc; disk_partition_t info; block_dev_desc_t *dev_desc = NULL; - unsigned sector; + unsigned sector, partno = -1; memset((void *)&info, 0 , sizeof(disk_partition_t)); /* i.MX use MBR as partition table, so this will have @@ -1672,3 +1674,4 @@ U_BOOT_CMD( "\t'mmcX' is the mmc device you store your boot.img, which will read the boot.img from 1M offset('/boot' partition)\n" "\t 'partition' (optional) is the partition id of your device, if no partition give, will going to 'boot' partition\n" ); +#endif /* CMD_BOOTI */ |