提交 0092fa01 编写于 作者: T Tom Rini

a3m071: Make spl_start_uboot test like getenv_yesno does

This change makes the behaviour slightly more rebust and will match
other implementations which can use getenv_yesno directly.
Acked-by: NStefan Roese <sr@denx.de>
Signed-off-by: NTom Rini <trini@ti.com>
上级 3523df00
...@@ -412,7 +412,8 @@ int spl_start_uboot(void) ...@@ -412,7 +412,8 @@ int spl_start_uboot(void)
env_init(); env_init();
getenv_f("boot_os", s, sizeof(s)); getenv_f("boot_os", s, sizeof(s));
if ((s != NULL) && (strcmp(s, "yes") == 0)) if ((s != NULL) && (*s == '1' || *s == 'y' || *s == 'Y' ||
*s == 't' || *s == 'T'))
return 0; return 0;
return 1; return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册