From: Mike Frysinger Date: Mon, 5 Mar 2012 23:27:24 -0500 Subject: [U-Boot] [PATCH] env: Add the ability to merge the saved env with the default. In-Reply-To: <1329262255-27157-1-git-send-email-dianders@chromium.org> References: <1329262255-27157-1-git-send-email-dianders@chromium.org> Message-ID: <201203052327.26876.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: