MLK-18257-4 use another method check if need run bootcmd_mfg

Signed-off-by: Frank Li <Frank.Li@nxp.com>
(cherry picked from commit 09b1876fa4c74f8bd9b1efbf17ab8ab012a14555)
This commit is contained in:
Frank Li 2018-05-10 09:26:06 -05:00 committed by Ye Li
parent 8c6c2a1e7f
commit d39fd3f88c
1 changed files with 4 additions and 4 deletions

View File

@ -311,8 +311,8 @@ const char *bootdelay_process(void)
s = env_get("bootdelay");
bootdelay = s ? (int)simple_strtol(s, NULL, 10) : CONFIG_BOOTDELAY;
#if !defined(CONFIG_FSL_FASTBOOT) && defined(is_boot_from_usb)
if (is_boot_from_usb()) {
#if defined(is_boot_from_usb)
if (is_boot_from_usb() && env_get("bootcmd_mfg")) {
disconnect_from_pc();
printf("Boot from USB for mfgtools\n");
bootdelay = 0;
@ -349,8 +349,8 @@ const char *bootdelay_process(void)
#endif /* CONFIG_BOOTCOUNT_LIMIT */
s = env_get("bootcmd");
#if !defined(CONFIG_FSL_FASTBOOT) && defined(is_boot_from_usb)
if (is_boot_from_usb()) {
#if defined(is_boot_from_usb)
if (is_boot_from_usb() && env_get("bootcmd_mfg")) {
s = env_get("bootcmd_mfg");
printf("Run bootcmd_mfg: %s\n", s);
}