mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
env: Add generic redundant environment implementation
All current environments that implement redundancy use almost identical implementations. This patch implements the env_nand implementation as a function in env_common, and updates the env_export function to export an env_nand-style 'flags' field by default. Signed-off-by: Fiach Antaw <fiach.antaw@uqconnect.edu.au> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -224,6 +224,11 @@ int env_import(const char *buf, int check);
|
||||
/* Export from hash table into binary representation */
|
||||
int env_export(env_t *env_out);
|
||||
|
||||
#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
|
||||
/* Select and import one of two redundant environments */
|
||||
int env_import_redund(const char *buf1, const char *buf2);
|
||||
#endif
|
||||
|
||||
#endif /* DO_DEPS_ONLY */
|
||||
|
||||
#endif /* _ENVIRONMENT_H_ */
|
||||
|
Reference in New Issue
Block a user