[U-Boot] [PATCH v2 0/3] env: handle special variables and selective env default

Gerlando Falauto
2011-12-07T13:30:02Z

This patchset modifies the handling of all the operations on the environment
(set/import/default) so to unify handling of special variables.
On top of that we implement a selective "env default".

A selective "env import" would imply a user API change and should therefore
be discussed separately.

Changes in the syntax (user API):
- "env default" -f: override write-once variables, -a means all

Changes from v1:
- removed cosmetic patches (now mainstream)
- rebased to latest trunk
- removed subtle error in env_check_apply
(comparing {loadaddr, bootfile} to values instead
of variable names)
- changed env_check_apply so not to display warnings
in case of H_FORCE flag being set

Changes from v0
- checkpatch cleanup
- removed himport_ex()
- removed warning for serial_assign()
- env import NOT implemented here

Gerlando Falauto (3):
env: unify logic to check and apply changes
env: check and apply changes on delete/destroy
env: make "env default" selective, check and apply

README | 2 +
common/cmd_nvedit.c | 219 +++++++++++++++++++++++++++++++---------------
common/env_common.c | 35 +++++++-
include/config_cmd_all.h | 1 +
include/environment.h | 12 +++
include/search.h | 23 ++++-
lib/hashtable.c | 61 +++++++++++--
7 files changed, 270 insertions(+), 83 deletions(-)