projects
/
oweals
/
u-boot_mod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7da9fd
)
Enable defenv cmd only if flash and env cmds are defined
author
Piotr Dymacz
<pepe2k@gmail.com>
Thu, 8 Sep 2016 19:10:01 +0000
(21:10 +0200)
committer
Piotr Dymacz
<pepe2k@gmail.com>
Thu, 8 Sep 2016 19:10:01 +0000
(21:10 +0200)
u-boot/common/cmd_custom.c
patch
|
blob
|
history
diff --git
a/u-boot/common/cmd_custom.c
b/u-boot/common/cmd_custom.c
index 397984df9f4aa309085f495fee6cc7abc3c24ad2..fd2c3b2604eb7d5f8390a06e9e792b11afc203a8 100644
(file)
--- a/
u-boot/common/cmd_custom.c
+++ b/
u-boot/common/cmd_custom.c
@@
-179,7
+179,7
@@
U_BOOT_CMD(startsc, 1, 0, do_start_sc, "start serial console\n", NULL);
#endif /* if defined(CONFIG_NETCONSOLE) */
-#if
!defined(CONFIG_FOR_DLINK_DIR505_A1
)
+#if
defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_FLASH
)
/*
* Erase environment sector
*/
@@
-229,7
+229,7
@@
int do_default_env(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]){
}
U_BOOT_CMD(defenv, 1, 0, do_default_env, "reset environment variables to their default values\n", NULL);
-#endif /* if
!defined(CONFIG_FOR_DLINK_DIR505_A1)
*/
+#endif /* if
CONFIG_CMD_ENV && CONFIG_CMD_FLASH
*/
/*
* Allows to get reset button status: