env: Add generic redundant environment implementation
authorFiach Antaw <fiach.antaw@uqconnect.edu.au>
Wed, 25 Jan 2017 08:53:11 +0000 (18:53 +1000)
committerTom Rini <trini@konsulko.com>
Sat, 22 Jul 2017 19:36:17 +0000 (15:36 -0400)
commit76768f5f080316d33c25f96e4aaa50d0144f990a
treef686063cbca89c7aa57fc6aeecc9570c08d0b6b1
parent845e10d165e03bb2086daa35f37baab7fb960fa2
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>
common/env_common.c
include/environment.h