|
|
|
@ -59,7 +59,7 @@ DECLARE_GLOBAL_DATA_PTR; |
|
|
|
|
!defined(CONFIG_ENV_IS_IN_NAND) && \
|
|
|
|
|
!defined(CONFIG_ENV_IS_IN_ONENAND) && \
|
|
|
|
|
!defined(CONFIG_ENV_IS_IN_SPI_FLASH) && \
|
|
|
|
|
!defined(CFG_ENV_IS_NOWHERE) |
|
|
|
|
!defined(CONFIG_ENV_IS_NOWHERE) |
|
|
|
|
# error Define one of CFG_ENV_IS_IN_{NVRAM|EEPROM|FLASH|DATAFLASH|ONENAND|SPI_FLASH|NOWHERE} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -544,7 +544,7 @@ int getenv_r (char *name, char *buf, unsigned len) |
|
|
|
|
|| (defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_FLASH)) \
|
|
|
|
|
|| (defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_NAND)) \
|
|
|
|
|
|| (defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_ONENAND))) \
|
|
|
|
|
&& !defined(CFG_ENV_IS_NOWHERE)) |
|
|
|
|
&& !defined(CONFIG_ENV_IS_NOWHERE)) |
|
|
|
|
int do_saveenv (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) |
|
|
|
|
{ |
|
|
|
|
extern char * env_name_spec; |
|
|
|
@ -600,7 +600,7 @@ U_BOOT_CMD( |
|
|
|
|
|| (defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_FLASH)) \
|
|
|
|
|
|| (defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_NAND)) \
|
|
|
|
|
|| (defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_ONENAND))) \
|
|
|
|
|
&& !defined(CFG_ENV_IS_NOWHERE)) |
|
|
|
|
&& !defined(CONFIG_ENV_IS_NOWHERE)) |
|
|
|
|
U_BOOT_CMD( |
|
|
|
|
saveenv, 1, 0, do_saveenv, |
|
|
|
|
"saveenv - save environment variables to persistent storage\n", |
|
|
|
|