Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
155cb010
Commit
155cb010
authored
Jul 11, 2003
by
stroese
Browse files
- Fix bug in CONFIG_VERSION_VARIABLE.
parent
f12e568c
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/cmd_nvedit.c
View file @
155cb010
...
...
@@ -183,9 +183,6 @@ int _do_setenv (int flag, int argc, char *argv[])
* ver is readonly.
*/
if
(
(
strcmp
(
name
,
"serial#"
)
==
0
)
||
#if defined(CONFIG_VERSION_VARIABLE)
(
strcmp
(
name
,
"ver"
)
==
0
)
||
#endif
/* CONFIG_VERSION_VARIABLE */
((
strcmp
(
name
,
"ethaddr"
)
==
0
)
#if defined(CONFIG_OVERWRITE_ETHADDR_ONCE) && defined(CONFIG_ETHADDR)
&&
(
strcmp
(
env_get_addr
(
oldval
),
MK_STR
(
CONFIG_ETHADDR
))
!=
0
)
...
...
common/main.c
View file @
155cb010
...
...
@@ -284,10 +284,8 @@ void main_loop (void)
#ifdef CONFIG_VERSION_VARIABLE
{
extern
char
version_string
[];
char
*
str
=
getenv
(
"ver"
);
if
(
!
str
)
setenv
(
"ver"
,
version_string
);
/* set version variable */
setenv
(
"ver"
,
version_string
);
/* set version variable */
}
#endif
/* CONFIG_VERSION_VARIABLE */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment