projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3523df0
)
a3m071: Make spl_start_uboot test like getenv_yesno does
author
Tom Rini
<trini@ti.com>
Fri, 28 Mar 2014 16:03:41 +0000
(12:03 -0400)
committer
Tom Rini
<trini@ti.com>
Thu, 17 Apr 2014 18:39:54 +0000
(14:39 -0400)
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>
board/a3m071/a3m071.c
patch
|
blob
|
history
diff --git
a/board/a3m071/a3m071.c
b/board/a3m071/a3m071.c
index 7aeefb29a901e922ce219b7976e709fbbe5aa975..b96ba811fa2823f7ac6e021597cb3ccf06995c94 100644
(file)
--- 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;