diff options
author | Fiach Antaw | 2017-01-25 18:53:11 +1000 |
---|---|---|
committer | Tom Rini | 2017-07-22 15:36:17 -0400 |
commit | 76768f5f080316d33c25f96e4aaa50d0144f990a (patch) | |
tree | f686063cbca89c7aa57fc6aeecc9570c08d0b6b1 /include | |
parent | 845e10d165e03bb2086daa35f37baab7fb960fa2 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/environment.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h index 6f94986c6b3..d86230a2e92 100644 --- a/include/environment.h +++ b/include/environment.h @@ -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_ */ |