mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
cmd: env: add env select command
Add the new command 'env select' to force the persistent storage of environment, saved in gd->env_load_prio. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
committed by
Tom Rini
parent
0115dd3a6a
commit
a97d22ebba
@@ -286,6 +286,13 @@ int env_save(void);
|
||||
*/
|
||||
int env_erase(void);
|
||||
|
||||
/**
|
||||
* env_select() - Select the environment storage
|
||||
*
|
||||
* @return 0 if OK, -ve on error
|
||||
*/
|
||||
int env_select(const char *name);
|
||||
|
||||
/**
|
||||
* env_import() - Import from a binary representation into hash table
|
||||
*
|
||||
@@ -349,5 +356,4 @@ int env_get_char(int index);
|
||||
* This is used for those unfortunate archs with crappy toolchains
|
||||
*/
|
||||
void env_reloc(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user