diff options
author | Tom Rini <trini@ti.com> | 2014-03-28 12:03:41 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-04-17 14:39:54 -0400 |
commit | 0092fa01a7d74399a66dec1ff2cf7301f40ac60a (patch) | |
tree | fc74b8ce7cace91c9158a6bcebce91cd232946f6 /board/a3m071 | |
parent | 3523df0078b08e43b868da0680e617e75eca2581 (diff) | |
download | u-boot-0092fa01a7d74399a66dec1ff2cf7301f40ac60a.tar.gz |
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>
Diffstat (limited to 'board/a3m071')
-rw-r--r-- | board/a3m071/a3m071.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/a3m071/a3m071.c b/board/a3m071/a3m071.c index 7aeefb29a9..b96ba811fa 100644 --- a/board/a3m071/a3m071.c +++ b/board/a3m071/a3m071.c @@ -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; |