summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-10-31 10:10:17 +0800
committerYe Li <ye.li@nxp.com>2016-11-02 09:57:10 +0800
commit11b00e62e385ed5b701fc3a9d7ac7826a63280b9 (patch)
tree5df91e3568bf7f1273e7f4e3c06a21427776a212
parent3efee76dcf2d310c31018f2d05772ef0a279aaa2 (diff)
downloadu-boot-imx-11b00e62e385ed5b701fc3a9d7ac7826a63280b9.zip
u-boot-imx-11b00e62e385ed5b701fc3a9d7ac7826a63280b9.tar.gz
u-boot-imx-11b00e62e385ed5b701fc3a9d7ac7826a63280b9.tar.bz2
MLK-13410 Android: Change to set mfgtool only for none android u-bootn7.1.1_1.0.0-gan.car-demo
The mfgtool environments only can set in BSP u-boot image, not for android u-boot. Since android u-boot may go into fastboot in board_r phase which is earlier than mfgtool environment check. The USB status from android fastboot will cause u-boot to configure mfgtool environment. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 066f001a19bdc51b0fc0d65bcb87081b01f957c2)
-rw-r--r--common/autoboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/autoboot.c b/common/autoboot.c
index 1c08c08..d8a126f 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -250,7 +250,7 @@ const char *bootdelay_process(void)
s = getenv("bootdelay");
bootdelay = s ? (int)simple_strtol(s, NULL, 10) : CONFIG_BOOTDELAY;
-#ifdef is_boot_from_usb
+#if !defined(CONFIG_FSL_FASTBOOT) && defined(is_boot_from_usb)
if (is_boot_from_usb()) {
disconnect_from_pc();
printf("Boot from USB for mfgtools\n");
@@ -288,7 +288,7 @@ const char *bootdelay_process(void)
#endif /* CONFIG_BOOTCOUNT_LIMIT */
s = getenv("bootcmd");
-#ifdef is_boot_from_usb
+#if !defined(CONFIG_FSL_FASTBOOT) && defined(is_boot_from_usb)
if (is_boot_from_usb()) {
s = getenv("bootcmd_mfg");
printf("Run bootcmd_mfg: %s\n", s);