Skip to content

env: handle special variables and selective env default

Wolfgang Denk u-boot 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 of 7 patches 0 repliesNew
  2. v3 posting 4/40 of 6 patches 0 repliesSuperseded
  3. v3 posting 3/40 of 6 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v3 posting 2/40 of 6 patches0 repliesSuperseded
v3 posting 1/40 of 6 patches0 repliesSuperseded

2 of 7 patches are in this archive. The cover letter announces 7.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
6/7env: make "env default" selective, check and apply+0 -00 replies
7/7env: delete selected vars not present in imported env+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/7] env: handle special variables and selective env default

Dear Gerlando Falauto,

Quoted 18 lines · In message <[email protected]>…

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.

NOTE:
The entire patchset generates an increase in code size of about 1200 bytes on a PowerPC target.
As much as I would like to get rid of the set_default_vars() function in env_common.c, I have not found a nice way to do so.

Changes in the syntax (user API):
- "env default" -f: override write-once variables, -a means all
- display a warning when trying to set to default variables not present in the default env.

Quoted 5 lines

Changes from v3:
- rebased to current trunk (was not compilable)
- removed compiler warnings
- added an independent cosmetic patch on top of the series (from which only a later patch would actually benefit)

In which way are these changes related to the code I checked in for testing into the "env" branch?

Is this patch series supposed to replace this stuff?

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
PoB = "Prisoner of Bill" -- those held captive, unwillingly or other-
wise, by the contemptible Microsoft monopoly.
         -- Tom Christiansen in <[email protected]>