diff options
author | Ashok Reddy Soma | 2023-07-04 00:16:07 -0600 |
---|---|---|
committer | Tom Rini | 2023-07-17 16:20:08 -0400 |
commit | 4dc5e26242101f9090209e659e60422634c8bbcf (patch) | |
tree | 966b9beb01a0ca57045bec4b4da2e16cb792757f /doc/README.ubispl | |
parent | 3430f24bc69d61eadf5b09999d58c468ac67c9fe (diff) |
env: Fix default environment saving issue
When CONFIG_SYS_REDUNDAND_ENVIRONMENT is enabled, by default env is
getting saved to redundant environment irrespective of primary env is
present or not.
It means even if primary and redundant environment are not present, by
default, env is getting stored to redundant environment. Even if primary
env is present, it is choosing to store in redudndant env.
Ideally it should look for primary env and choose to store in primary env
if it is present. If both primary and redundant env are not present then
it should save in to primary env area.
Fix the issue by making env_valid = ENV_INVALID when both the
environments are not present.
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/README.ubispl')
0 files changed, 0 insertions, 0 deletions