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

Gerlando Falauto gerlando.falauto at keymile.com
Fri Nov 18 17:49:10 CET 2011


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

First patch is a cosmetic prerequisite to the second patch
which constifies serial_assign().

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

Gerlando Falauto (5):
  serial: cosmetic checkpatch compliance
  serial: constify serial_assign()
  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      |  209 +++++++++++++++++++++++++++++++---------------
 common/env_common.c      |   35 +++++++-
 common/serial.c          |   51 ++++++------
 include/config_cmd_all.h |    1 +
 include/environment.h    |   12 +++
 include/search.h         |   23 +++++-
 include/serial.h         |   19 ++--
 lib/hashtable.c          |   61 ++++++++++++--
 9 files changed, 300 insertions(+), 113 deletions(-)



More information about the U-Boot mailing list