[U-Boot] [RFC] env: Group environment variables

Mike Frysinger vapier at gentoo.org
Wed Nov 4 18:55:41 CET 2009


On Wednesday 04 November 2009 11:34:12 John Schmoller wrote:
> This patch groups environment variables using a non-invasive protocol.
> Grouping is achieved by setting a "grouping" variable to a string of
> variables, and setting the master grouping variable, "env_groups" to
> the list of these grouping variables.
> 
> For instance,
> setenv net ipaddr netmask gatewayip serverip
> setenv boot bootcmd bootdelay bootargs
> setenv env_groups net boot
> 
> would print 4 variables grouped under net, 3 variables grouped under
> boot, and the rest of the variables grouped under "other". If env_groups
> is not defined, print behaves normally.
> 
> Signed-off-by: John Schmoller <jschmoller at xes-inc.com>
> ---
> I'm interesetd in seeing peoples opinions of this implementation of
>  grouping environment variables.  My major concerns about this
>  implementation are

my main concern is bloat.  while i guess it would make nicer `printenv`, i'm 
not going to use it.  so please put it behind a config option so it doesnt 
waste space on all boards.
-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/20091104/6c19b3be/attachment.pgp 


More information about the U-Boot mailing list