[U-Boot] [PATCH 0/10] Add getenv_ulong to return an environment var as a number

Mike Frysinger vapier at gentoo.org
Fri Oct 14 19:11:53 CEST 2011


On Friday 14 October 2011 10:31:12 Simon Glass wrote:
> On Thu, Oct 13, 2011 at 11:13 PM, Reinhard Meyer wrote:
> >> Several places in U-Boot's board files can make use of a function like
> >> this,
> >> so this patch series creates the function, and changes the board files
> >> to use it.
> >> 
> >> As suggested by Mike Frysinger<vapier at gentoo.org>.
> >> 
> >> 
> >> Simon Glass (10):
> >>   Add getenv_int() to read an integer from an environment variable
> > 
> > Just a question (I cannot dig deep into this):
> > 
> > Since getenv_* might be used before relocation (it is for baudrate, am I
> > right?),
> > and I cannot see how getenv_int() would work before relocation.
> 
> From what I can tell the existing getenv() function deals with this
> automatically by looking at the global flags.

yep, and that should be sufficient.  in the pre-relocation stages, you can only 
have one active getenv() at a time, but that isn't anything new, and in this 
particular case, it's fine.

if people need an explicit getenv_ulong_r() in the future, we can wait for 
someone else to propose that.  but i think it unlikely.
-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/20111014/df45a9d7/attachment.pgp 


More information about the U-Boot mailing list