[U-Boot] [PATCH 5/5] New implementation for internal handling of environment variables.

Kim Phillips kim.phillips at freescale.com
Tue Jul 20 02:38:25 CEST 2010


On Sat, 17 Jul 2010 21:45:48 +0200
Wolfgang Denk <wd at denx.de> wrote:

> - It would be nice if we could add wildcard support for environment
>   variables; this is needed for variable name auto-completion,
>   but it would also be nice to be able to say "printenv ip*" or
>   "printenv *addr*"

you were right - a grepenv/findenv/'env search' substring
implementation on top of this looks to be at least as expensive as a
full export operation :/

>  int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[])
>  {
> +#if 0 /* need to reimplement */

ouch - this is u-boot's most useful feature :)

It would be good to know boot time overhead the initial import function
makes, esp. in terms of number of boot-time accesses to the
environment...

Kim



More information about the U-Boot mailing list