[U-Boot] [PATCH] env: Add the ability to merge the saved env with the default.
Mike Frysinger
vapier at gentoo.org
Tue Mar 6 05:27:24 CET 2012
On Tuesday 14 February 2012 18:30:55 Doug Anderson wrote:
> Create a saved enviroment with this env variable set to "1" to merge the
> saved environment on top of the default environment. The idea is that your
> saved environment would just contain variables that you'd like to override
> from the default so that as you update u-boot (w/potential changes to the
> default) you get all the updates.
>
> This is really most useful when you have a tool like fw_setenv to manage
> your saved environment. Using 'saveenv' to save your environment will saved
> the _merged_ environment (AKA it won't unmerge things).
this is kind of a crappy interface. also, doesn't the existing `env import`
do this ?
* env import [-d] [-t | -b | -c] addr [size]
* -d: delete existing environment before importing;
* otherwise overwrite / append to existion definitions
so if we "imported" the default, we'd get this ?
i think someone recently was doing work on default env handling. but wasn't
following it too closely.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120305/645b28a7/attachment.pgp>
More information about the U-Boot
mailing list