mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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: Stefan Roese <sr@denx.de> Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
3523df0078
commit
0092fa01a7
1 changed files with 2 additions and 1 deletions
|
@ -412,7 +412,8 @@ int spl_start_uboot(void)
|
|||
|
||||
env_init();
|
||||
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 1;
|
||||
|
|
Loading…
Reference in a new issue