[U-Boot] [PATCH] common: add a grepenv command

Kim Phillips kim.phillips at freescale.com
Fri Jul 16 21:02:56 CEST 2010


On Fri, 16 Jul 2010 12:55:42 +0200
Wolfgang Denk <wd at denx.de> wrote:

> Dear "Reinhard Meyer (-VC)",
> 
> In message <4C403472.3070907 at emk-elektronik.de> you wrote:
> >
> > >> The grepenv command this patch adds can be used in lieu of printenv
> > >> to facilitate searching.  grepenv works like printenv but limits its output
> > >> only to environment strings (variable name and value pairs) that match the
> > >> user specified substring.
> > 
> > My five cents to this: this addition command should be optional (#ifdef) anyway...
> 
> Agreed...

hmm - it adds ~450bytes text+data on powerpc.  Is that the concern?

I can make it optional, but, if so, I'd also like to add it to
config_cmd_default.h instead of it being added to 100s of board config
files.

Kim



More information about the U-Boot mailing list